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

Side by Side Diff: LayoutTests/fast/dom/wrapper-classes.html

Issue 106773003: Make arguments to Document methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <style id="style" media="screen"> 4 <style id="style" media="screen">
5 .non-existent-class { 5 .non-existent-class {
6 color: rgb(0, 0, 0); 6 color: rgb(0, 0, 0);
7 clip: rect(0, 0, 1, 1); 7 clip: rect(0, 0, 1, 1);
8 content: counter(dummy, square); 8 content: counter(dummy, square);
9 } 9 }
10 </style> 10 </style>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 description("This tests wrapper class names for JavaScript."); 72 description("This tests wrapper class names for JavaScript.");
73 73
74 stylesheet = document.getElementById("style").sheet; 74 stylesheet = document.getElementById("style").sheet;
75 root = document.documentElement; 75 root = document.documentElement;
76 xmlDocument = document.getElementById("xmlframe").contentDocument; 76 xmlDocument = document.getElementById("xmlframe").contentDocument;
77 77
78 debug('Basics'); 78 debug('Basics');
79 debug(''); 79 debug('');
80 80
81 test("document.createAttribute()", "Attr"); 81 test("document.createAttribute()", "Attr");
82 test("document.createComment()", "Comment"); 82 test("document.createComment('')", "Comment");
83 test("document.createDocumentFragment()", "DocumentFragment"); 83 test("document.createDocumentFragment()", "DocumentFragment");
84 test("document.implementation", "DOMImplementation"); 84 test("document.implementation", "DOMImplementation");
85 test("root.attributes", "NamedNodeMap"); 85 test("root.attributes", "NamedNodeMap");
86 test("document.createNodeIterator(root, 0, null, false)", "NodeIterator"); 86 test("document.createNodeIterator(root, 0, null, false)", "NodeIterator");
87 test("document.getElementsByTagName('div')", "NodeList"); 87 test("document.getElementsByTagName('div')", "NodeList");
88 test("document.createRange()", "Range"); 88 test("document.createRange()", "Range");
89 test("document.createTextNode()", "Text"); 89 test("document.createTextNode('')", "Text");
90 test("document.createTreeWalker(root, 0, null, false)", "TreeWalker"); 90 test("document.createTreeWalker(root, 0, null, false)", "TreeWalker");
91 91
92 debug(''); 92 debug('');
93 debug('XML'); 93 debug('XML');
94 debug(''); 94 debug('');
95 95
96 test("xmlDocument", "Document"); 96 test("xmlDocument", "Document");
97 test("xmlDocument.createCDATASection()", "CDATASection"); 97 test("xmlDocument.createCDATASection()", "CDATASection");
98 test("xmlDocument.createElementNS('x', 'x', 'x')", "Element"); 98 test("xmlDocument.createElementNS('x', 'x', 'x')", "Element");
99 test("xmlDocument.createProcessingInstruction()", "ProcessingInstruction"); 99 test("xmlDocument.createProcessingInstruction('x', '')", "ProcessingInstruct ion");
100 100
101 debug(''); 101 debug('');
102 debug('Events'); 102 debug('Events');
103 debug(''); 103 debug('');
104 104
105 test("document.createEvent('Event')", "Event"); 105 test("document.createEvent('Event')", "Event");
106 test("document.createEvent('KeyboardEvent')", "KeyboardEvent"); 106 test("document.createEvent('KeyboardEvent')", "KeyboardEvent");
107 test("document.createEvent('MouseEvent')", "MouseEvent"); 107 test("document.createEvent('MouseEvent')", "MouseEvent");
108 test("document.createEvent('MutationEvent')", "MutationEvent"); 108 test("document.createEvent('MutationEvent')", "MutationEvent");
109 test("document.createEvent('OverflowEvent')", "OverflowEvent"); 109 test("document.createEvent('OverflowEvent')", "OverflowEvent");
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 function frameLoaded() 297 function frameLoaded()
298 { 298 {
299 runTest(); 299 runTest();
300 } 300 }
301 301
302 </script> 302 </script>
303 <iframe id="xmlframe" onload="frameLoaded()" style="height:0px" src="data:applic ation/xhtml+xml,<?xml version='1.0' encoding='UTF-8'?><body/>"></iframe> 303 <iframe id="xmlframe" onload="frameLoaded()" style="height:0px" src="data:applic ation/xhtml+xml,<?xml version='1.0' encoding='UTF-8'?><body/>"></iframe>
304 </body> 304 </body>
305 </html> 305 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/null-chardata-crash.html ('k') | LayoutTests/fast/dom/wrapper-classes-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698