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

Side by Side Diff: LayoutTests/fast/dom/Document/embeds-non-html.html

Issue 237233002: Move 'embeds' / 'plugins' attributes from HTMLDocument to Document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Attempt to fix Windows build Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Document/embeds-non-html-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 <head> 3 <head>
4 <link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipa ge/dom.html#dom-document-scripts"/> 4 <link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipa ge/dom.html#dom-document-embeds"/>
5 <script src="../../../resources/js-test.js"></script> 5 <script src="../../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 description("Make sure the script attribute is exposed on non-HTML documents."); 9 description("Make sure the embeds / plugins attributes are exposed on non-HTML d ocuments.");
10 10
11 var xmlDocument = document.implementation.createDocument("", "", null); 11 var xmlDocument = document.implementation.createDocument("", "", null);
12 shouldBe("xmlDocument.__proto__", "XMLDocument.prototype"); 12 shouldBe("xmlDocument.__proto__", "XMLDocument.prototype");
13 shouldBe("xmlDocument.__proto__.__proto__", "Document.prototype"); 13 shouldBe("xmlDocument.__proto__.__proto__", "Document.prototype");
14 14
15 shouldBe("xmlDocument.scripts.__proto__", "HTMLCollection.prototype"); 15 shouldBe("xmlDocument.embeds.__proto__", "HTMLCollection.prototype");
16 shouldBe("xmlDocument.scripts.length", "0"); 16 shouldBe("xmlDocument.embeds.length", "0");
17 shouldBe("xmlDocument.embeds", "xmlDocument.plugins");
17 </script> 18 </script>
18 </body> 19 </body>
19 </html> 20 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Document/embeds-non-html-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698