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

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

Issue 82553008: DevTools: Show -0 for negative zero in console. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed 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="../../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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 var linkify = "http://webkit.org/"; 43 var linkify = "http://webkit.org/";
44 var valuelessAttribute = document.createAttribute("attr"); 44 var valuelessAttribute = document.createAttribute("attr");
45 var valuedAttribute = document.createAttribute("attr"); 45 var valuedAttribute = document.createAttribute("attr");
46 valuedAttribute.value = "value"; 46 valuedAttribute.value = "value";
47 var existingAttribute = document.getElementById("x").attributes[0]; 47 var existingAttribute = document.getElementById("x").attributes[0];
48 var throwingLengthGetter = {get length() { throw "Length called"; }}; 48 var throwingLengthGetter = {get length() { throw "Length called"; }};
49 var objectWithNonEnumerables = Object.create({ foo: 1 }, { 49 var objectWithNonEnumerables = Object.create({ foo: 1 }, {
50 getFoo: { value: function() { return this.foo; } }, 50 getFoo: { value: function() { return this.foo; } },
51 bar: { get: function() { return this.bar; }, set: function(x) { this.bar = x; } } 51 bar: { get: function() { return this.bar; }, set: function(x) { this.bar = x; } }
52 }); 52 });
53 var negZero = 1 / Number.NEGATIVE_INFINITY;
53 54
54 globals = [ 55 globals = [
55 regex1, regex2, str, str2, error, errorWithMessage, node, func, multilin efunc, num, linkify, 56 regex1, regex2, str, str2, error, errorWithMessage, node, func, multilin efunc, num, linkify,
56 null, undefined, valuelessAttribute, valuedAttribute, existingAttribute, throwingLengthGetter, 57 null, undefined, valuelessAttribute, valuedAttribute, existingAttribute, throwingLengthGetter,
57 NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [fun ction() {}], bar, svg, 58 NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [fun ction() {}], bar, svg,
58 objectWithNonEnumerables, Object.create(null), Object, Object.prototype 59 objectWithNonEnumerables, negZero, Object.create(null), Object, Object.p rototype
59 ]; 60 ];
60 61
61 runTest(); 62 runTest();
62 } 63 }
63 64
64 function test() 65 function test()
65 { 66 {
66 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) ); 67 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) );
67 68
68 function loopOverGlobals(current, total) 69 function loopOverGlobals(current, total)
(...skipping 26 matching lines...) Expand all
95 } 96 }
96 </script> 97 </script>
97 </head> 98 </head>
98 99
99 <body onload="onload()"> 100 <body onload="onload()">
100 <div id="x"></div> 101 <div id="x"></div>
101 <p id="p">Tests that console logging dumps proper messages.</p> 102 <p id="p">Tests that console logging dumps proper messages.</p>
102 </body> 103 </body>
103 <svg id="svg-node"></svg> 104 <svg id="svg-node"></svg>
104 </html> 105 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/console/console-dir-expected.txt ('k') | LayoutTests/inspector/console/console-format-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698