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

Side by Side Diff: LayoutTests/fast/html/imports/import-defaultView.html

Issue 560183002: HTML Imports: Let document.defaultView null for imports. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-defaultView-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script src="../../../resources/js-test.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 <head> 4 <head>
5 <link id="importLink" rel="import" href="resources/hello.html"> 5 <link id="importLink" rel="import" href="resources/hello.html">
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 shouldBe("importLink.import.defaultView", "document.defaultView"); 9 // This used to be non-null but not longer is.
10 // See http://crbug.com/408272
11 shouldBeNull("importLink.import.defaultView");
10 12
11 window.jsTestIsAsync = true; 13 window.jsTestIsAsync = true;
12 14
13 var xhr = new XMLHttpRequest(); 15 var xhr = new XMLHttpRequest();
14 xhr.open("GET", "resources/root.html", true); 16 xhr.open("GET", "resources/root.html", true);
15 xhr.responseType = "document"; 17 xhr.responseType = "document";
16 xhr.onload = function() { 18 xhr.onload = function() {
17 shouldBeNull("xhr.response.defaultView"); 19 shouldBeNull("xhr.response.defaultView");
18 20
19 createdDoc = document.implementation.createHTMLDocument("Hello"); 21 createdDoc = document.implementation.createHTMLDocument("Hello");
20 shouldBeNull("createdDoc.defaultView"); 22 shouldBeNull("createdDoc.defaultView");
21 finishJSTest(); 23 finishJSTest();
22 }; 24 };
23 xhr.send(); 25 xhr.send();
24 26
25 </script> 27 </script>
26 </body> 28 </body>
27 </html> 29 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-defaultView-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698