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

Delta Between Two Patch Sets: qunit/tests/cssEscaping.js

Issue 29713631: Issue 5760 - Use relative require paths (Closed)
Left Patch Set: Address PS1 Comments, rebase Created March 20, 2018, 11:25 p.m.
Right Patch Set: Address PS4 comments, rebase Created April 5, 2018, 11:09 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « qunit/common.js ('k') | qunit/tests/filterValidation.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 "use strict"; 1 "use strict";
2 2
3 { 3 {
4 const {Filter, ElemHideFilter} = 4 const {Filter, ElemHideFilter} =
5 require("../../adblockpluscore/lib/filterClasses"); 5 require("../../adblockpluscore/lib/filterClasses");
6 const {escapeCSS, quoteCSS} = require("filterComposer"); 6 const {escapeCSS, quoteCSS} = require("../../lib/filterComposer");
7 7
8 QUnit.module("CSS escaping"); 8 QUnit.module("CSS escaping");
9 9
10 test("CSS escaping", () => 10 test("CSS escaping", () =>
11 { 11 {
12 function testSelector(opts) 12 function testSelector(opts)
13 { 13 {
14 let mustMatch = opts.mustMatch !== false; 14 let mustMatch = opts.mustMatch !== false;
15 let doc = document.implementation.createHTMLDocument(); 15 let doc = document.implementation.createHTMLDocument();
16 16
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Leading dashes must be escaped, when followed by certain characters. 94 // Leading dashes must be escaped, when followed by certain characters.
95 testEscape("-" + chr); 95 testEscape("-" + chr);
96 } 96 }
97 97
98 // Test some non-ASCII characters. However, those shouldn't 98 // Test some non-ASCII characters. However, those shouldn't
99 // require escaping. 99 // require escaping.
100 testEscape("\uD83D\uDE3B\u2665\u00E4"); 100 testEscape("\uD83D\uDE3B\u2665\u00E4");
101 }); 101 });
102 } 102 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld