| OLD | NEW | 
| (Empty) |  | 
 |   1 <html> | 
 |   2 <script src="../../http/tests/inspector/inspector-test.js"></script> | 
 |   3 <script src="../../http/tests/inspector/debugger-test.js"></script> | 
 |   4  | 
 |   5 <script type="application/dart" src="deferred-import.dart"></script> | 
 |   6  | 
 |   7 <script> | 
 |   8  | 
 |   9 function postMessageToDart() | 
 |  10 { | 
 |  11     window.postMessage('fromJS', '*'); | 
 |  12 } | 
 |  13  | 
 |  14 function testFunction() { | 
 |  15     postMessageToDart(); | 
 |  16 } | 
 |  17  | 
 |  18 function test() | 
 |  19 { | 
 |  20     var panel = WebInspector.inspectorView.showPanel("sources"); | 
 |  21     InspectorTest.runDebuggerTestSuite([ | 
 |  22         function testScopeChain(next) | 
 |  23         { | 
 |  24             // Intentionally end this script name with .DART instead of .dart | 
 |  25             // to verify that breakpoints set by url regex still are treated | 
 |  26             // as dart even if the regexp and script url do not end in .dart. | 
 |  27             InspectorTest.showScriptSource('deferred-import.dart', didShowScript
    Source); | 
 |  28  | 
 |  29             function didShowScriptSource(sourceFrame) | 
 |  30             { | 
 |  31                 // Break within the body of the closure method. | 
 |  32                 setBreakpointAndWaitUntilPaused('deferred-import-library.dart', 
    4, didPauseInDart); | 
 |  33                 InspectorTest.runTestFunction(); | 
 |  34                 InspectorTest.waitUntilPaused(didPauseInDart); | 
 |  35             } | 
 |  36  | 
 |  37             function didPauseInDart(callFrames) | 
 |  38             { | 
 |  39                 InspectorTest.captureStackTrace(callFrames.slice(0, 1)); | 
 |  40                 next(); | 
 |  41             } | 
 |  42         }, | 
 |  43     ]); | 
 |  44  | 
 |  45     function setBreakpointAndWaitUntilPaused(urlRegex, lineNumber, pausedCallbac
    k) | 
 |  46     { | 
 |  47         var expectedBreakpointId; | 
 |  48         WebInspector.debuggerModel._agent.setBreakpointByUrl(lineNumber, undefin
    ed, urlRegex, 0, "", undefined, "dart", undefined); | 
 |  49     } | 
 |  50 }; | 
 |  51 </script> | 
 |  52  | 
 |  53 <body onload="runTest()"> | 
 |  54 <div id="sample_text_id"></div> | 
 |  55 </body> | 
 |  56 </html> | 
| OLD | NEW |