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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/html/imports/import-script.html

Issue 1772853002: Block the HTML parser on external stylesheets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified parser blocking logic Created 4 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script> 5 <script>
6 setPrintTestResultsLazily();
6 var loadedScripts = []; 7 var loadedScripts = [];
7 var numLoaded = 0; 8 var numLoaded = 0;
8 var labels = ["InlineParser", "InlineDynamic", "ExternalParser", "ExternalDynami c", "ExternalAsync"].sort(); 9 var labels = ["InlineParser", "InlineDynamic", "ExternalParser", "ExternalDynami c", "ExternalAsync"].sort();
9 10
10 document.notifyLoaded = function(label, doc) 11 document.notifyLoaded = function(label, doc)
11 { 12 {
12 givenDocument = doc; 13 givenDocument = doc;
13 shouldBe("givenDocument", "document"); 14 shouldBe("givenDocument", "document");
14 shouldBe("givenDocument.currentScript.ownerDocument", "leaf.import"); 15 shouldBe("givenDocument.currentScript.ownerDocument", "leaf.import");
15 16
(...skipping 17 matching lines...) Expand all
33 var dynamicallyInsertedInlineScript = leaf.import.createElement("script"); 34 var dynamicallyInsertedInlineScript = leaf.import.createElement("script");
34 dynamicallyInsertedInlineScript.innerHTML = "document.notifyLoaded('InlineDynami c', document);" 35 dynamicallyInsertedInlineScript.innerHTML = "document.notifyLoaded('InlineDynami c', document);"
35 leaf.import.body.appendChild(dynamicallyInsertedInlineScript); 36 leaf.import.body.appendChild(dynamicallyInsertedInlineScript);
36 37
37 var dynamicallyInsertedExternalScript = leaf.import.createElement("script"); 38 var dynamicallyInsertedExternalScript = leaf.import.createElement("script");
38 dynamicallyInsertedExternalScript.setAttribute("src", "script-leaf-external-dyna mic.js"); 39 dynamicallyInsertedExternalScript.setAttribute("src", "script-leaf-external-dyna mic.js");
39 leaf.import.body.appendChild(dynamicallyInsertedExternalScript); 40 leaf.import.body.appendChild(dynamicallyInsertedExternalScript);
40 </script> 41 </script>
41 </body> 42 </body>
42 </html> 43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698