Changeset 76020 in webkit
- Timestamp:
- Jan 18, 2011 6:09:35 AM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r76012 r76020 1 2011-01-18 Pavel Podivilov <podivilov@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: fix flaky debugger tests. 6 https://bugs.webkit.org/show_bug.cgi?id=51320 7 8 * http/tests/inspector/debugger-test2.js: 9 (initialize_DebuggerTest.InspectorTest.setBreakpoint): 10 (initialize_DebuggerTest.InspectorTest.showScriptSource): 11 (initialize_DebuggerTest.InspectorTest._showScriptSource): 12 * inspector/debugger-pause-on-breakpoint-expected.txt: 13 * inspector/debugger-pause-on-breakpoint.html: 14 1 15 2011-01-18 Antti Koivisto <antti@apple.com> 2 16 -
trunk/LayoutTests/http/tests/inspector/debugger-test2.js
r75943 r76020 94 94 { 95 95 var scripts = WebInspector.debuggerModel.scriptsForURL(url); 96 if (scripts.length) { 97 WebInspector.debuggerModel.setBreakpoint(scripts[0].sourceID, lineNumber, enabled, condition); 98 callback(); 99 } else { 100 var handler = InspectorTest.setBreakpoint.bind(InspectorTest, url, lineNumber, enabled, condition, callback); 101 InspectorTest._addSniffer(WebInspector.debuggerModel, "_parsedScriptSource", handler); 102 } 96 for (var i = 0; i < scripts.length; ++i) 97 WebInspector.debuggerModel.setBreakpoint(scripts[i].sourceID, lineNumber, enabled, condition); 103 98 } 104 99 … … 127 122 InspectorTest.showScriptSource = function(scriptName, callback) 128 123 { 129 if (InspectorTest._scriptsAreParsed([scriptName])) { 130 var scriptOrResource = InspectorTest._showScriptSource(scriptName); 131 callback(scriptOrResource.sourceFrame); 132 } else 124 if (InspectorTest._scriptsAreParsed([scriptName])) 125 InspectorTest._showScriptSource(scriptName, callback); 126 else 133 127 InspectorTest._addSniffer(WebInspector.debuggerModel, "_parsedScriptSource", InspectorTest.showScriptSource.bind(InspectorTest, scriptName, callback)); 134 128 }; … … 175 169 scriptsPanel._showScriptOrResource(scriptResource); 176 170 } 177 return scriptResource; 171 172 var sourceFrame = WebInspector.currentPanel.visibleView.sourceFrame; 173 if (sourceFrame._content) 174 callback(sourceFrame); 175 else 176 InspectorTest._addSniffer(sourceFrame._textModel, "setText", callback.bind(null, sourceFrame)); 178 177 }; 179 178 -
trunk/LayoutTests/inspector/debugger-breakpoints-not-activated-on-reload.html
r75943 r76020 25 25 { 26 26 InspectorTest.addResult("Main resource was shown."); 27 InspectorTest.setBreakpoint(WebInspector.mainResource.url, 8, true, "", step3); 27 InspectorTest.setBreakpoint(WebInspector.mainResource.url, 8, true, ""); 28 WebInspector.panels.scripts.toggleBreakpointsButton.element.click(); 29 InspectorTest.reloadPage(step4); 28 30 } 29 31 30 32 function step3() 31 33 { 32 WebInspector.panels.scripts.toggleBreakpointsButton.element.click(); 33 InspectorTest.reloadPage(step4); 34 InspectorTest.showScriptSource(testName, step4); 34 35 } 35 36 36 37 function step4() 37 {38 InspectorTest.showScriptSource(testName, step5);39 }40 41 function step5()42 38 { 43 39 InspectorTest.addResult("Main resource was shown."); -
trunk/LayoutTests/inspector/debugger-pause-on-breakpoint-expected.txt
r75943 r76020 2 2 3 3 Debugger was enabled. 4 Script source was shown. 4 5 Set timer for test function. 5 6 Script execution paused. -
trunk/LayoutTests/inspector/debugger-pause-on-breakpoint.html
r75943 r76020 17 17 function step1() 18 18 { 19 InspectorTest.s etBreakpoint(WebInspector.mainResource.url, 9, true, "", step2);19 InspectorTest.showScriptSource("debugger-pause-on-breakpoint.html", step2); 20 20 } 21 21 22 22 function step2() 23 23 { 24 InspectorTest.addResult("Script source was shown."); 25 InspectorTest.setBreakpoint(WebInspector.mainResource.url, 9, true, ""); 24 26 InspectorTest.runTestFunctionAndWaitUntilPaused(step3); 25 27 }
Note: See TracChangeset
for help on using the changeset viewer.