Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/syntax/parsing/test.js

Issue 2711183003: Import wpt@a7e9c2abcf65b78fcf1c246fec6681c74e1bc352 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 var namespaces = { 1 var namespaces = {
2 "html":"http://www.w3.org/1999/xhtml", 2 "html":"http://www.w3.org/1999/xhtml",
3 "math":"http://www.w3.org/1998/Math/MathML", 3 "math":"http://www.w3.org/1998/Math/MathML",
4 "mathml":"http://www.w3.org/1998/Math/MathML", 4 "mathml":"http://www.w3.org/1998/Math/MathML",
5 "svg":"http://www.w3.org/2000/svg", 5 "svg":"http://www.w3.org/2000/svg",
6 "xlink":"http://www.w3.org/1999/xlink", 6 "xlink":"http://www.w3.org/1999/xlink",
7 "xml":"http://www.w3.org/XML/1998/namespace", 7 "xml":"http://www.w3.org/XML/1998/namespace",
8 "xmlns":"http://www.w3.org/2000/xmlns/" 8 "xmlns":"http://www.w3.org/2000/xmlns/"
9 }; 9 };
10 10
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 } 313 }
314 }, 314 },
315 {explicit_done:true}); 315 {explicit_done:true});
316 316
317 function test_next(iframe) { 317 function test_next(iframe) {
318 var test_id = order[tests_started]; 318 var test_id = order[tests_started];
319 tests_started++; 319 tests_started++;
320 var x = tests[test_id]; 320 var x = tests[test_id];
321 var t = x[0]; 321 var t = x[0];
322 iframe_map[t.name] = iframe.id; 322 iframe_map[t.name] = iframe.id;
323 setTimeout(function() { 323 step_timeout(function() {
324 t.step(function() { 324 t.step(function() {
325 var string_uri_encoded_input = x[1]; 325 var string_uri_encoded_input = x[1];
326 var string_escaped_expected = x[2]; 326 var string_escaped_expected = x[2];
327 if (test_type === "innerHTML") { 327 if (test_type === "innerHTML") {
328 var container = x[3]; 328 var container = x[3];
329 } 329 }
330 test_func(iframe, t, test_id, string_uri_encoded_input, strin g_escaped_expected, 330 test_func(iframe, t, test_id, string_uri_encoded_input, strin g_escaped_expected,
331 container); 331 container);
332 }); 332 });
333 }, 0); 333 }, 0);
334 } 334 }
335 335
336 onload = function() { 336 onload = function() {
337 Array.prototype.forEach.call(document.getElementsByTagName("iframe"), 337 Array.prototype.forEach.call(document.getElementsByTagName("iframe"),
338 function(iframe) { 338 function(iframe) {
339 if (tests_started<order.length) { 339 if (tests_started<order.length) {
340 test_next(iframe); 340 test_next(iframe);
341 } 341 }
342 }); 342 });
343 }; 343 };
344 } 344 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698