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

Side by Side Diff: LayoutTests/inspector/debugger/debugger-expand-scope.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/debugger-test.js"></script> 4 <script src="../../http/tests/inspector/debugger-test.js"></script>
5 <script> 5 <script>
6 6
7 function makeClosure(n) { 7 function makeClosure(n) {
8 var makeClosureLocalVar = 'local.' + n; 8 var makeClosureLocalVar = 'local.' + n;
9 return function innerFunction(x) { 9 return function innerFunction(x) {
10 var innerFunctionLocalVar = x + 2; 10 var innerFunctionLocalVar = x + 2;
11 var negInf = -Infinity;
12 var negZero = 1 / negInf;
11 try { 13 try {
12 throw new Error("An exception"); 14 throw new Error("An exception");
13 } catch (e) { 15 } catch (e) {
14 e.toString(); 16 e.toString();
15 debugger; 17 debugger;
16 } 18 }
17 return n + makeClosureLocalVar + x + innerFunctionLocalVar; 19 return n + makeClosureLocalVar + x + innerFunctionLocalVar;
18 } 20 }
19 } 21 }
20 22
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 </head> 70 </head>
69 71
70 <body onload="runTest()"> 72 <body onload="runTest()">
71 <input type='button' onclick='testFunction()' value='Test'/> 73 <input type='button' onclick='testFunction()' value='Test'/>
72 <p> 74 <p>
73 Test that sections representing scopes of the current call frame are expandable 75 Test that sections representing scopes of the current call frame are expandable
74 and contain correct data. 76 and contain correct data.
75 </p> 77 </p>
76 </body> 78 </body>
77 </html> 79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698