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

Side by Side Diff: LayoutTests/fast/dom/getElementsByClassName/dumpNodeList.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 <body> 2 <body>
3 <div class="one">Line 1<div class="two">Line 2</div><p>Line <i>3</i></p></div> 3 <div class="one">Line 1<div class="two">Line 2</div><p>Line <i>3</i></p></div>
4 <div id="test" class="one two"><div class="one two">line 4</div><p class="two">l ine 5</p></div> 4 <div id="test" class="one two"><div class="one two">line 4</div><p class="two">l ine 5</p></div>
5 <p><ol id="console"></ol></p> 5 <p><ol id="console"></ol></p>
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 9
10 function log(message) 10 function log(message)
(...skipping 15 matching lines...) Expand all
26 26
27 try { 27 try {
28 var elm = document.getElementById("test"); 28 var elm = document.getElementById("test");
29 29
30 log(document.getElementsByClassName("one").dump()); 30 log(document.getElementsByClassName("one").dump());
31 log(document.getElementsByClassName("two").dump()); 31 log(document.getElementsByClassName("two").dump());
32 log(document.getElementsByClassName("one two").dump()); 32 log(document.getElementsByClassName("one two").dump());
33 log(document.getElementsByClassName("one\t\t\n \ftwo").dump()); 33 log(document.getElementsByClassName("one\t\t\n \ftwo").dump());
34 log(document.getElementsByClassName("").dump()); 34 log(document.getElementsByClassName("").dump());
35 log(document.getElementsByClassName("onetwo").dump()); 35 log(document.getElementsByClassName("onetwo").dump());
36 log(document.getElementsByClassName().dump());
37 log(document.getElementsByClassName(null).dump()); 36 log(document.getElementsByClassName(null).dump());
38 log(document.getElementsByClassName(undefined).dump()); 37 log(document.getElementsByClassName(undefined).dump());
39 38
40 log(elm.getElementsByClassName("one").dump()); 39 log(elm.getElementsByClassName("one").dump());
41 log(elm.getElementsByClassName("two").dump()); 40 log(elm.getElementsByClassName("two").dump());
42 log(elm.getElementsByClassName("one two").dump()); 41 log(elm.getElementsByClassName("one two").dump());
43 log(elm.getElementsByClassName("one\t\t\n \ftwo").dump()); 42 log(elm.getElementsByClassName("one\t\t\n \ftwo").dump());
44 log(elm.getElementsByClassName("").dump()); 43 log(elm.getElementsByClassName("").dump());
45 log(elm.getElementsByClassName("onetwo").dump()); 44 log(elm.getElementsByClassName("onetwo").dump());
46 log(elm.getElementsByClassName().dump());
47 log(elm.getElementsByClassName(null).dump()); 45 log(elm.getElementsByClassName(null).dump());
48 log(elm.getElementsByClassName(undefined).dump()); 46 log(elm.getElementsByClassName(undefined).dump());
49 } catch (ex) { 47 } catch (ex) {
50 log("Exception: " + ex.description); 48 log("Exception: " + ex.description);
51 } 49 }
52 </script> 50 </script>
53 </body> 51 </body>
54 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698