editor/libeditor/html/tests/browserscope/test_richtext.html

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <!--
michael@0 4 BrowserScope richtext category tests
michael@0 5 -->
michael@0 6 <head>
michael@0 7 <title>BrowserScope Richtext Tests</title>
michael@0 8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
michael@0 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
michael@0 10 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
michael@0 11 <script type="text/javascript" src="lib/richtext/currentStatus.js"></script>
michael@0 12 </head>
michael@0 13 <body>
michael@0 14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=550569">Mozilla Bug 550569</a>
michael@0 15 <p id="display"></p>
michael@0 16 <div id="content">
michael@0 17 <iframe src="lib/richtext/richtext/richtext.html"></iframe>
michael@0 18 </div>
michael@0 19 <pre id="test">
michael@0 20 <script type="application/javascript">
michael@0 21
michael@0 22 SimpleTest.waitForExplicitFinish();
michael@0 23 // Running all of the tests can take a long time, try to account for it
michael@0 24 SimpleTest.requestLongerTimeout(5);
michael@0 25
michael@0 26 function sendScore(results, continueParams) {
michael@0 27 ok(results.length > 1, "At least one test should have been run");
michael@0 28 for (var i = 1; i < results.length; ++i) {
michael@0 29 var result = results[i];
michael@0 30 [type, command, param, success] = result.split(/[\-=]/);
michael@0 31 var comp = is;
michael@0 32 if (isKnownFailure(type, command, param)) {
michael@0 33 comp = todo_is;
michael@0 34 }
michael@0 35 comp(success, "1", "Browserscope richtext category=" + type +
michael@0 36 " test=" + command +
michael@0 37 " param=" + param);
michael@0 38 }
michael@0 39 }
michael@0 40
michael@0 41 document.getElementsByTagName("iframe")[0].addEventListener("load", function() {
michael@0 42 SimpleTest.finish();
michael@0 43 }, false);
michael@0 44
michael@0 45 </script>
michael@0 46 </pre>
michael@0 47 </body>
michael@0 48 </html>

mercurial