editor/libeditor/html/tests/browserscope/lib/richtext/currentStatus.js

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 /**
     2  * This file lists the tests in the BrowserScope suite which we are currently
     3  * failing.  We mark them as todo items to keep track of them.
     4  */
     6 var knownFailures = {
     7   // Dummy result items.  There is one for each category.
     8   'apply' : {
     9     '0-undefined' : true
    10   },
    11   'unapply' : {
    12     '0-undefined' : true
    13   },
    14   'change' : {
    15     '0-undefined' : true
    16   },
    17   'query' : {
    18     '0-undefined' : true
    19   },
    20   'a' : {
    21     'createbookmark-0' : true,
    22     'fontsize-1' : true,
    23     'subscript-1' : true,
    24     'superscript-1' : true,
    25   },
    26   'u': {
    27     'removeformat-1' : true,
    28     'removeformat-2' : true,
    29     'strikethrough-2' : true,
    30     'subscript-1' : true,
    31     'superscript-1' : true,
    32     'unbookmark-0' : true,
    33   },
    34   'q': {
    35     'fontsize-1' : true,
    36     'fontsize-2' : true,
    37   },
    38   'c': {
    39     'fontsize-1' : true,
    40     'fontsize-2' : true,
    41   },
    42 };
    44 function isKnownFailure(type, test, param) {
    45   return (type in knownFailures) && ((test + "-" + param) in knownFailures[type]);
    46 }

mercurial