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

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

Issue 23861007: DevTools: Fix console output for native functions like Math.random (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated test expectations Created 7 years, 3 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 onload() 10 function onload()
(...skipping 23 matching lines...) Expand all
34 }; 34 };
35 var num = 1.2e-1; 35 var num = 1.2e-1;
36 var linkify = "http://webkit.org/"; 36 var linkify = "http://webkit.org/";
37 var valuelessAttribute = document.createAttribute("attr"); 37 var valuelessAttribute = document.createAttribute("attr");
38 var valuedAttribute = document.createAttribute("attr"); 38 var valuedAttribute = document.createAttribute("attr");
39 valuedAttribute.value = "value"; 39 valuedAttribute.value = "value";
40 var existingAttribute = document.getElementById("x").attributes[0]; 40 var existingAttribute = document.getElementById("x").attributes[0];
41 var throwingLengthGetter = {get length() { throw "Length called"; }}; 41 var throwingLengthGetter = {get length() { throw "Length called"; }};
42 42
43 globals = [ 43 globals = [
44 regex1, regex2, str, str2, error, node, func, multilinefunc, num, linkif y, 44 regex1, regex2, str, str2, error, node, func, Math.random, multilinefunc , num, linkify,
45 null, undefined, valuelessAttribute, valuedAttribute, existingAttribute, throwingLengthGetter, 45 null, undefined, valuelessAttribute, valuedAttribute, existingAttribute, throwingLengthGetter,
46 NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [fun ction() {}], bar, svg 46 NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [fun ction() {}], bar, svg
47 ]; 47 ];
48 48
49 runTest(); 49 runTest();
50 } 50 }
51 51
52 function log(current) 52 function log(current)
53 { 53 {
54 console.log(globals[current]); 54 console.log(globals[current]);
(...skipping 28 matching lines...) Expand all
83 } 83 }
84 </script> 84 </script>
85 </head> 85 </head>
86 86
87 <body onload="onload()"> 87 <body onload="onload()">
88 <div id="x"></div> 88 <div id="x"></div>
89 <p id="p">Tests that console logging dumps proper messages.</p> 89 <p id="p">Tests that console logging dumps proper messages.</p>
90 </body> 90 </body>
91 <svg id="svg-node"></svg> 91 <svg id="svg-node"></svg>
92 </html> 92 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698