Changeset 99405 in webkit
- Timestamp:
- Nov 7, 2011, 4:19:57 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 8 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/inspector/debugger/script-formatter-breakpoints-expected.txt (added)
-
LayoutTests/inspector/debugger/script-formatter-breakpoints.html (added)
-
LayoutTests/inspector/debugger/script-formatter-console-expected.txt (added)
-
LayoutTests/inspector/debugger/script-formatter-console.html (added)
-
LayoutTests/inspector/debugger/script-formatter-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/debugger/script-formatter.html (modified) (2 diffs)
-
LayoutTests/platform/mac/Skipped (modified) (1 diff)
-
LayoutTests/platform/qt/Skipped (modified) (1 diff)
-
LayoutTests/platform/win/Skipped (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/inspector/front-end/ScriptsPanel.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r99404 r99405 1 2011-11-07 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: split script-formatter test into multiple tests. 4 https://bugs.webkit.org/show_bug.cgi?id=71607 5 6 Reviewed by Yury Semikhatsky. 7 8 * inspector/debugger/script-formatter-breakpoints-expected.txt: Added. 9 * inspector/debugger/script-formatter-breakpoints.html: Added. 10 * inspector/debugger/script-formatter-console-expected.txt: Added. 11 * inspector/debugger/script-formatter-console.html: Added. 12 * inspector/debugger/script-formatter-expected.txt: 13 * inspector/debugger/script-formatter.html: 14 * platform/mac/Skipped: 15 * platform/qt/Skipped: 16 * platform/win/Skipped: 17 1 18 2011-11-07 Philippe Normand <pnormand@igalia.com> 2 19 -
trunk/LayoutTests/inspector/debugger/script-formatter-expected.txt
r97060 r99405 1 CONSOLE MESSAGE: line 24: Test message.2 1 Tests the script formatting functionality. 3 2 … … 16 15 } 17 16 </script></body></html> 18 19 Running: testBreakpointsInOriginalAndFormattedSource20 Script execution paused.21 Script execution resumed.22 Page reloaded.23 Navigated to test-navigation.html24 Page reloaded.25 Navigated back to test page.26 Script execution paused.27 Script execution resumed.28 29 Running: testConsoleMessagesForFormattedScripts30 script-formatter.html:2431 script-formatter.html:3232 17 Debugger was disabled. 33 18 -
trunk/LayoutTests/inspector/debugger/script-formatter.html
r97060 r99405 6 6 7 7 <script> 8 9 function f1()10 {11 var a=0;var b=1;var c=3;var d=4;var e=5;12 var f=0;13 return 0;14 }15 16 function f2()17 {18 var x = 0;19 return 0;20 }21 22 function f3()23 {24 console.log("Test message.");25 }26 8 27 9 var test = function() … … 109 91 var content = "<html><body><script>function f(){}<" + "/script><script>function g(){}<" + "/script></body></html>"; 110 92 worker.postMessage({ mimeType: "text/html", content: content }); 111 },112 113 function testBreakpointsInOriginalAndFormattedSource(next)114 {115 var root;116 InspectorTest.showScriptSource("script-formatter.html", didShowScriptSource);117 118 function didShowScriptSource(sourceFrame)119 {120 root = sourceFrame._url.substr(0, sourceFrame._url.lastIndexOf("/") + 1);121 InspectorTest.setBreakpoint(sourceFrame, 11, "", true);122 InspectorTest.waitUntilPaused(pausedInF1);123 InspectorTest.evaluateInPageWithTimeout("f1()");124 }125 126 function pausedInF1(callFrames)127 {128 InspectorTest.assertEquals("f1", callFrames[0].functionName);129 InspectorTest.resumeExecution(resumed);130 }131 132 function resumed()133 {134 InspectorTest.navigate(root + "resources/test-navigation.html", didNavigateAnotherPage);135 }136 137 function didNavigateAnotherPage()138 {139 InspectorTest.addResult("Navigated to test-navigation.html");140 panel._toggleFormatSource();141 InspectorTest.showScriptSource("test-navigation.html", didShowAnotherPage);142 }143 144 function didShowAnotherPage(sourceFrame)145 {146 InspectorTest.navigate(root + "script-formatter.html", didNavigateBack);147 }148 149 function didNavigateBack()150 {151 InspectorTest.addResult("Navigated back to test page.");152 InspectorTest.showScriptSource("script-formatter.html", didShowFormattedScriptSource);153 }154 155 function didShowFormattedScriptSource(sourceFrame)156 {157 // There should be no breakpoint in f1 since script is pretty-printed now.158 InspectorTest.evaluateInPageWithTimeout("f1()");159 InspectorTest.setBreakpoint(panel.visibleView, 24, "", true);160 InspectorTest.waitUntilPaused(pausedInF2);161 InspectorTest.evaluateInPageWithTimeout("f2()");162 }163 164 function pausedInF2(callFrames)165 {166 InspectorTest.assertEquals("f2", callFrames[0].functionName);167 panel._toggleFormatSource();168 InspectorTest.resumeExecution(next);169 }170 },171 172 function testConsoleMessagesForFormattedScripts(next)173 {174 function dumpConsoleMessageURLs()175 {176 var messages = WebInspector.console.messages;177 for (var i = 0; i < messages.length; ++i) {178 var element = messages[i].toMessageElement();179 var anchor = element.querySelector(".console-message-url");180 InspectorTest.addResult(anchor.textContent);181 }182 }183 InspectorTest.evaluateInPage("f3()", didEvaluate);184 185 function didEvaluate()186 {187 dumpConsoleMessageURLs();188 InspectorTest.addSniffer(WebInspector, "formatLinkText", setTimeout.bind(window, didFormatLinkText, 0));189 panel._toggleFormatSource();190 }191 192 function didFormatLinkText()193 {194 dumpConsoleMessageURLs();195 next();196 }197 93 } 198 94 ]); -
trunk/LayoutTests/platform/mac/Skipped
r99339 r99405 487 487 fast/repaint/table-extra-bottom-grow.html 488 488 489 # https://bugs.webkit.org/show_bug.cgi?id=71581490 inspector/debugger/script-formatter.html -
trunk/LayoutTests/platform/qt/Skipped
r99373 r99405 2433 2433 fast/text/line-initial-and-final-swashes.html 2434 2434 2435 # [Qt] inspector/debugger/script-formatter.html failed after r970562436 # https://bugs.webkit.org/show_bug.cgi?id=697572437 inspector/debugger/script-formatter.html2438 2439 2435 # [Qt] Assertion fail in CSSPrimitiveValue ctor 2440 2436 # https://bugs.webkit.org/show_bug.cgi?id=69933 -
trunk/LayoutTests/platform/win/Skipped
r99339 r99405 1445 1445 fast/events/platform-wheelevent-paging-y-in-scrolling-page.html 1446 1446 1447 # https://bugs.webkit.org/show_bug.cgi?id=715811448 inspector/debugger/script-formatter.html -
trunk/Source/WebCore/ChangeLog
r99403 r99405 1 2011-11-07 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: split script-formatter test into multiple tests. 4 https://bugs.webkit.org/show_bug.cgi?id=71607 5 6 Reviewed by Yury Semikhatsky. 7 8 Tests: inspector/debugger/script-formatter-breakpoints.html 9 inspector/debugger/script-formatter-console.html 10 11 * inspector/front-end/ScriptsPanel.js: 12 (WebInspector.ScriptsPanel.prototype._removeSourceFrame): 13 1 14 2011-11-07 Keishi Hattori <keishi@webkit.org> 2 15 -
trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js
r98945 r99405 658 658 { 659 659 var option = uiSourceCode._option; 660 if (option) 660 // FIXME: find out why we are getting here with option detached. 661 if (option && this._filesSelectElement === option.parentElement) 661 662 this._filesSelectElement.removeChild(option); 662 663
Note:
See TracChangeset
for help on using the changeset viewer.