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.

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

mercurial