| OLD | NEW | 
|   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 "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  | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
|  40 } |  40 } | 
|  41  |  41  | 
|  42 function testFunction() |  42 function testFunction() | 
|  43 { |  43 { | 
|  44     var f = makeClosure("TextParam"); |  44     var f = makeClosure("TextParam"); | 
|  45     f(2014); |  45     f(2014); | 
|  46 } |  46 } | 
|  47  |  47  | 
|  48 function test() |  48 function test() | 
|  49 { |  49 { | 
|  50     InspectorTest.startDebuggerTest(step1); |  50     InspectorTest.startDebuggerTest(onTestStarted); | 
|  51  |  51  | 
|  52     function step1() |  52     function onTestStarted() | 
|  53     { |  53     { | 
|  54         InspectorTest.runTestFunctionAndWaitUntilPaused(step2); |  54         InspectorTest.runTestFunctionAndWaitUntilPaused(onDebuggerPaused); | 
|  55     } |  55     } | 
|  56  |  56  | 
|  57     function step2() |  57     function onDebuggerPaused() | 
|  58     { |  58     { | 
|  59         InspectorTest.expandScopeVariablesSidebarPane(step3); |  59         InspectorTest.addSniffer(WebInspector.ScopeChainSidebarPane.prototype, "
    _sidebarPaneUpdatedForTest", onSidebarRendered, true); | 
|  60     } |  60     } | 
|  61  |  61  | 
|  62     function step3() |  62     function onSidebarRendered() | 
 |  63     { | 
 |  64         InspectorTest.expandScopeVariablesSidebarPane(onScopeVariablesExpanded); | 
 |  65     } | 
 |  66  | 
 |  67     function onScopeVariablesExpanded() | 
|  63     { |  68     { | 
|  64         InspectorTest.addResult(""); |  69         InspectorTest.addResult(""); | 
|  65         InspectorTest.dumpScopeVariablesSidebarPane(); |  70         InspectorTest.dumpScopeVariablesSidebarPane(); | 
|  66         InspectorTest.completeDebuggerTest(); |  71         InspectorTest.completeDebuggerTest(); | 
|  67     } |  72     } | 
|  68 } |  73 } | 
|  69  |  74  | 
|  70 </script> |  75 </script> | 
|  71 </head> |  76 </head> | 
|  72  |  77  | 
|  73 <body onload="runTest()"> |  78 <body onload="runTest()"> | 
|  74 <input type='button' onclick='testFunction()' value='Test'/> |  79 <input type='button' onclick='testFunction()' value='Test'/> | 
|  75 <p> |  80 <p> | 
|  76 Tests ES6 harmony scope sections. |  81 Tests ES6 harmony scope sections. | 
|  77 </p> |  82 </p> | 
|  78 </body> |  83 </body> | 
|  79 </html> |  84 </html> | 
| OLD | NEW |