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

Side by Side Diff: LayoutTests/inspector/console/console-format.html

Issue 1218873002: Layout tests: unflake console tests that race with the main resource load. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5
5 <script> 6 <script>
6
7 // Global Values 7 // Global Values
8 var globals = []; 8 var globals = [];
9 9
10 function log(current) 10 function log(current)
11 { 11 {
12 console.log(globals[current]); 12 console.log(globals[current]);
13 console.log([globals[current]]); 13 console.log([globals[current]]);
14 } 14 }
15 15
16 function onload() 16 function onload()
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 try { 85 try {
86 var a = document.createElement("div"); 86 var a = document.createElement("div");
87 var b = document.createElement("div"); 87 var b = document.createElement("div");
88 a.removeChild(b); 88 a.removeChild(b);
89 } catch(e) { 89 } catch(e) {
90 e.stack = ""; 90 e.stack = "";
91 result = e; 91 result = e;
92 } 92 }
93 return result; 93 return result;
94 } 94 }
95 //# sourceURL=console-format.html
96 </script>
95 97
98 <script>
96 function test() 99 function test()
97 { 100 {
98 InspectorTest.hideInspectorView(); 101 InspectorTest.hideInspectorView();
99 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) ); 102 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) );
100 103
101 function loopOverGlobals(current, total) 104 function loopOverGlobals(current, total)
102 { 105 {
103 function advance() 106 function advance()
104 { 107 {
105 var next = current + 1; 108 var next = current + 1;
(...skipping 25 matching lines...) Expand all
131 } 134 }
132 </script> 135 </script>
133 </head> 136 </head>
134 137
135 <body onload="onload()"> 138 <body onload="onload()">
136 <div id="x"></div> 139 <div id="x"></div>
137 <p id="p">Tests that console logging dumps proper messages.</p> 140 <p id="p">Tests that console logging dumps proper messages.</p>
138 </body> 141 </body>
139 <svg id="svg-node"></svg> 142 <svg id="svg-node"></svg>
140 </html> 143 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698