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

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

Issue 464793002: DevTools: Simplify isArrayLike() in injected script and extend InjectedScriptHost.type() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test fix Created 6 years, 4 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 <script> 5 <script>
6 6
7 // Global Values 7 // Global Values
8 var globals = []; 8 var globals = [];
9 9
10 function log(current) 10 function log(current)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 var negZero = 1 / Number.NEGATIVE_INFINITY; 60 var negZero = 1 / Number.NEGATIVE_INFINITY;
61 61
62 var arrayLikeFunction = function() {}; 62 var arrayLikeFunction = function() {};
63 arrayLikeFunction.splice = function() {}; 63 arrayLikeFunction.splice = function() {};
64 64
65 globals = [ 65 globals = [
66 regex1, regex2, str, str2, error, errorWithMessage, node, func, multilin efunc, num, linkify, 66 regex1, regex2, str, str2, error, errorWithMessage, node, func, multilin efunc, num, linkify,
67 null, undefined, valuelessAttribute, valuedAttribute, existingAttribute, throwingLengthGetter, 67 null, undefined, valuelessAttribute, valuedAttribute, existingAttribute, throwingLengthGetter,
68 NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [fun ction() {}], bar, svg, 68 NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [fun ction() {}], bar, svg,
69 objectWithNonEnumerables, negZero, Object.create(null), Object, Object.p rototype, arrayLikeFunction, 69 objectWithNonEnumerables, negZero, Object.create(null), Object, Object.p rototype, arrayLikeFunction,
70 new Number(42), new String("abc") 70 new Number(42), new String("abc"), new Uint16Array([1, 2, 3])
71 ]; 71 ];
72 72
73 runTest(); 73 runTest();
74 } 74 }
75 75
76 function test() 76 function test()
77 { 77 {
78 InspectorTest.hideInspectorView(); 78 InspectorTest.hideInspectorView();
79 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) ); 79 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) );
80 80
(...skipping 30 matching lines...) Expand all
111 } 111 }
112 </script> 112 </script>
113 </head> 113 </head>
114 114
115 <body onload="onload()"> 115 <body onload="onload()">
116 <div id="x"></div> 116 <div id="x"></div>
117 <p id="p">Tests that console logging dumps proper messages.</p> 117 <p id="p">Tests that console logging dumps proper messages.</p>
118 </body> 118 </body>
119 <svg id="svg-node"></svg> 119 <svg id="svg-node"></svg>
120 </html> 120 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698