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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes.html

Issue 2887413003: [DevTools] fix name for module scope in scopes sidebar pane (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 type="module">
6 "use strict"; 6 "use strict";
7 7
8 let globalLet = 41; 8 let globalLet = 41;
9 const globalConst = 42; 9 const globalConst = 42;
10 10
11 function makeClosure(n) 11 window.makeClosure = function(n)
12 { 12 {
13 let makeClosureBlockVar = "block." + n; 13 let makeClosureBlockVar = "block." + n;
14 var makeClosureLocalVar = "local." + n; 14 var makeClosureLocalVar = "local." + n;
15 { 15 {
16 let makeClosureDeeperBlockVar = "block.deep." + n; 16 let makeClosureDeeperBlockVar = "block.deep." + n;
17 var makeClosureDeeperLocalVar = "local.deep." + n; 17 var makeClosureDeeperLocalVar = "local.deep." + n;
18 return function innerFunction(x) 18 return function innerFunction(x)
19 { 19 {
20 let innerFunctionBlockVar = x + 102; 20 let innerFunctionBlockVar = x + 102;
21 var innerFunctionLocalVar = x + 2; 21 var innerFunctionLocalVar = x + 2;
22 var negInf = -Infinity; 22 var negInf = -Infinity;
23 var negZero = 1 / negInf; 23 var negZero = 1 / negInf;
24 { 24 {
25 let block1 = "block {...}"; 25 let block1 = "block {...}";
26 const const1 = 1; 26 const const1 = 1;
27 try { 27 try {
28 throw new Error("An exception"); 28 throw new Error("An exception");
29 } catch (e) { 29 } catch (e) {
30 let block2 = "catch(e) {...}"; 30 let block2 = "catch(e) {...}";
31 const const2 = 2; 31 const const2 = 2;
32 e.toString(); 32 e.toString();
33 debugger; 33 debugger;
34 } 34 }
35 } 35 }
36 return n + makeClosureLocalVar + x + innerFunctionLocalVar + innerFu nctionBlockVar + 36 return n + makeClosureLocalVar + x + innerFunctionLocalVar + innerFu nctionBlockVar +
37 makeClosureBlockVar + makeClosureDeeperBlockVar + makeClosureDee perLocalVar; 37 makeClosureBlockVar + makeClosureDeeperBlockVar + makeClosureDee perLocalVar;
38 } 38 }
39 } 39 }
40 } 40 }
41 </script>
42 <script>
43 let globalScriptLet = 41;
44 const globalScriptConst = 42;
41 45
42 function testFunction() 46 function testFunction()
43 { 47 {
44 var f = makeClosure("TextParam"); 48 var f = makeClosure("TextParam");
45 f(2014); 49 f(2014);
46 } 50 }
47 51 </script>
52 <script>
48 function test() 53 function test()
49 { 54 {
50 InspectorTest.startDebuggerTest(onTestStarted); 55 InspectorTest.startDebuggerTest(onTestStarted);
51 56
52 function onTestStarted() 57 function onTestStarted()
53 { 58 {
54 InspectorTest.addSniffer(Sources.ScopeChainSidebarPane.prototype, "_side barPaneUpdatedForTest", onSidebarRendered, true); 59 InspectorTest.addSniffer(Sources.ScopeChainSidebarPane.prototype, "_side barPaneUpdatedForTest", onSidebarRendered, true);
55 InspectorTest.runTestFunctionAndWaitUntilPaused(() => {}); 60 InspectorTest.runTestFunctionAndWaitUntilPaused(() => {});
56 } 61 }
57 62
(...skipping 13 matching lines...) Expand all
71 </script> 76 </script>
72 </head> 77 </head>
73 78
74 <body onload="runTest()"> 79 <body onload="runTest()">
75 <input type='button' onclick='testFunction()' value='Test'/> 80 <input type='button' onclick='testFunction()' value='Test'/>
76 <p> 81 <p>
77 Tests ES6 harmony scope sections. 82 Tests ES6 harmony scope sections.
78 </p> 83 </p>
79 </body> 84 </body>
80 </html> 85 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-es6-harmony-scopes-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698