1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/editor/libeditor/html/tests/browserscope/lib/richtext/currentStatus.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,46 @@ 1.4 +/** 1.5 + * This file lists the tests in the BrowserScope suite which we are currently 1.6 + * failing. We mark them as todo items to keep track of them. 1.7 + */ 1.8 + 1.9 +var knownFailures = { 1.10 + // Dummy result items. There is one for each category. 1.11 + 'apply' : { 1.12 + '0-undefined' : true 1.13 + }, 1.14 + 'unapply' : { 1.15 + '0-undefined' : true 1.16 + }, 1.17 + 'change' : { 1.18 + '0-undefined' : true 1.19 + }, 1.20 + 'query' : { 1.21 + '0-undefined' : true 1.22 + }, 1.23 + 'a' : { 1.24 + 'createbookmark-0' : true, 1.25 + 'fontsize-1' : true, 1.26 + 'subscript-1' : true, 1.27 + 'superscript-1' : true, 1.28 + }, 1.29 + 'u': { 1.30 + 'removeformat-1' : true, 1.31 + 'removeformat-2' : true, 1.32 + 'strikethrough-2' : true, 1.33 + 'subscript-1' : true, 1.34 + 'superscript-1' : true, 1.35 + 'unbookmark-0' : true, 1.36 + }, 1.37 + 'q': { 1.38 + 'fontsize-1' : true, 1.39 + 'fontsize-2' : true, 1.40 + }, 1.41 + 'c': { 1.42 + 'fontsize-1' : true, 1.43 + 'fontsize-2' : true, 1.44 + }, 1.45 +}; 1.46 + 1.47 +function isKnownFailure(type, test, param) { 1.48 + return (type in knownFailures) && ((test + "-" + param) in knownFailures[type]); 1.49 +}