Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: qunit/tests/cssEscaping.js

Issue 29592604: Issue 5957 - Get the unit tests passing again (Closed)
Patch Set: lib/adblockplus.js isn't required for the tests anymore Created Oct. 30, 2017, 3:17 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « metadata.chrome ('k') | qunit/tests/filterValidation.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 "use strict"; 1 "use strict";
2 2
3 { 3 {
4 const {Filter, ElemHideFilter} = require("filterClasses"); 4 const {Filter, ElemHideFilter} = require("filterClasses");
5 const {escapeCSS, quoteCSS} = require("filterComposer"); 5 const {escapeCSS, quoteCSS} = require("filterComposer");
6 6
7 module("CSS escaping"); 7 QUnit.module("CSS escaping");
8 8
9 test("CSS escaping", () => 9 test("CSS escaping", () =>
10 { 10 {
11 function testSelector(opts) 11 function testSelector(opts)
12 { 12 {
13 let mustMatch = opts.mustMatch !== false; 13 let mustMatch = opts.mustMatch !== false;
14 let doc = document.implementation.createHTMLDocument(); 14 let doc = document.implementation.createHTMLDocument();
15 15
16 let style = doc.createElement("style"); 16 let style = doc.createElement("style");
17 doc.documentElement.appendChild(style); 17 doc.documentElement.appendChild(style);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Leading dashes must be escaped, when followed by certain characters. 93 // Leading dashes must be escaped, when followed by certain characters.
94 testEscape("-" + chr); 94 testEscape("-" + chr);
95 } 95 }
96 96
97 // Test some non-ASCII characters. However, those shouldn't 97 // Test some non-ASCII characters. However, those shouldn't
98 // require escaping. 98 // require escaping.
99 testEscape("\uD83D\uDE3B\u2665\u00E4"); 99 testEscape("\uD83D\uDE3B\u2665\u00E4");
100 }); 100 });
101 } 101 }
OLDNEW
« no previous file with comments | « metadata.chrome ('k') | qunit/tests/filterValidation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld