Changeset 101069 in webkit
- Timestamp:
- Nov 23, 2011, 5:10:27 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 11 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/tests/inspector/compiler-source-mapping-debug-expected.txt (added)
-
LayoutTests/http/tests/inspector/compiler-source-mapping-debug.html (added)
-
LayoutTests/http/tests/inspector/resources/source-map.json (modified) (1 diff)
-
LayoutTests/http/tests/inspector/resources/source1.js (modified) (1 diff)
-
LayoutTests/http/tests/inspector/resources/source2.js (modified) (1 diff)
-
LayoutTests/platform/gtk/Skipped (modified) (1 diff)
-
LayoutTests/platform/mac/Skipped (modified) (1 diff)
-
LayoutTests/platform/qt/Skipped (modified) (1 diff)
-
LayoutTests/platform/win/Skipped (modified) (1 diff)
-
LayoutTests/platform/wincairo/Skipped (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/inspector/front-end/DebuggerPresentationModel.js (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r101065 r101069 1 2011-11-18 Pavel Podivilov <podivilov@chromium.org> 2 3 Web Inspector: add integration test for compiler source maps. 4 https://bugs.webkit.org/show_bug.cgi?id=72730 5 6 Reviewed by Pavel Feldman. 7 8 * http/tests/inspector/compiler-source-mapping-debug-expected.txt: Added. 9 * http/tests/inspector/compiler-source-mapping-debug.html: Added. 10 * http/tests/inspector/resources/source-map.json: 11 * http/tests/inspector/resources/source1.js: 12 * http/tests/inspector/resources/source2.js: 13 (ClickHandler.prototype.handle): 14 1 15 2011-11-23 Scott Graham <scottmg@chromium.org> 2 16 -
trunk/LayoutTests/http/tests/inspector/resources/source-map.json
r99823 r101069 1 1 { 2 2 "version":3, 3 "file":"compiled.js", 3 4 "lineCount":2, 4 "mappings":"AACAA,MAAAC, OAAA,CAAwBC,QAAA,EACxB,CACI,IAAIC,EAAMC,QAAAC,cAAsB,CAAC,KAAD,CAChCF,EAAAG,YAAA,CAAkB,KAClBH,EAAAI,iBAAoB,CAAC,OAAD,CAAUC,WAAV,CAAuB,CAAA,CAAvB,CACpBJ,SAAAK,KAAAC,YAAyB,CAACP,CAAD,CAErBQ,EAAAA,CAAMP,QAAAC,cAAsB,CAAC,KAAD,CAChCM,EAAAL,YAAA,CAAkB,ocAClBF;QAAAK,KAAAC,YAAyB,CAACC,CAAD,CAR7B,CAWSH,SAAAA,YAAW,CAACI,CAAD,CACpB,CAEIC,CAD8BC,IAAZC,YAClBF,QAAc,CAACD,CAAD,CAFlB,CCbSG,QAAAA,aAAY,EACrB,EAGAA,YAAAC,UAAAH,OAAA,CAAwCI,QAAA,CAACL,CAAD,CACxC,CACI,IAAIM,EAAUd,QAAAC,cAAsB,CAAC,KAAD,CACpCa,EAAAZ,YAAA,CAAsBM,CAAAO,UACtBf,SAAAK,KAAAC,YAAyB,CAACQ,CAAD,CAH7B;",5 "mappings":"AACAA,MAAAC,iBAAuB,CAAC,MAAD,CAAS,QAAQ,EACxC,CACI,IAAIC,EAASC,QAAAC,cAAsB,CAAC,QAAD,CACnCF,EAAAG,GAAA,CAAY,MACZH,EAAAD,iBAAuB,CAAC,OAAD,CAAUK,WAAV,CAAuB,CAAA,CAAvB,CACvBH,SAAAI,KAAAC,YAAyB,CAACN,CAAD,CAErBO,EAAAA,CAAMN,QAAAC,cAAsB,CAAC,KAAD,CAChCK,EAAAJ,GAAA,CAAS,ocACTF;QAAAI,KAAAC,YAAyB,CAACC,CAAD,CAR7B,CADuB,CAYvBH,SAASA,YAAW,CAACI,CAAD,CACpB,CAEIC,CAD8BC,IAAZC,YAClBF,QAAc,CAACD,CAAD,CAFlB,C,CCbAG,QAASA,aAAY,EACrB,EAGAA,YAAAC,UAAAH,OAAA,CAAgCI,QAAQ,EACxC,CACIC,OAAAC,IAAW,CAAC,iBAAD,CADf;", 5 6 "sources":["source1.js","source2.js"], 6 "names":["window"," onload","window.onload","foo","document","createElement","textContent","addEventListener","handleClick","body","appendChild","bar","event","handle","handler","ClickHandler","prototype","ClickHandler.prototype.handle","element","timeStamp"]7 "names":["window","addEventListener","button","document","createElement","id","handleClick","body","appendChild","bar","event","handle","handler","ClickHandler","prototype","ClickHandler.prototype.handle","console","log"] 7 8 } -
trunk/LayoutTests/http/tests/inspector/resources/source1.js
r99823 r101069 1 window. onload =function()1 window.addEventListener('load', function() 2 2 { 3 var foo = document.createElement('div');4 foo.textContent = 'foo';5 foo.addEventListener('click', handleClick, true);6 document.body.appendChild( foo);3 var button = document.createElement('button'); 4 button.id = 'test'; 5 button.addEventListener('click', handleClick, true); 6 document.body.appendChild(button); 7 7 8 8 var bar = document.createElement('div'); 9 bar. textContent= 'barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr';9 bar.id = 'barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr'; 10 10 document.body.appendChild(bar); 11 } 11 }); 12 12 13 13 function handleClick(event) -
trunk/LayoutTests/http/tests/inspector/resources/source2.js
r99823 r101069 5 5 ClickHandler.prototype.handle = function(event) 6 6 { 7 var element = document.createElement('div'); 8 element.textContent = event.timeStamp; 9 document.body.appendChild(element); 7 console.log('button clicked!'); 10 8 } -
trunk/LayoutTests/platform/gtk/Skipped
r101060 r101069 1267 1267 inspector/debugger/live-edit.html 1268 1268 1269 # https://bugs.webkit.org/show_bug.cgi?id=53003 1270 http/tests/inspector/compiler-source-mapping-debug.html 1271 1269 1272 # [GTK] r65681 broke a couple GTK+ a11y tests 1270 1273 # https://bugs.webkit.org/show_bug.cgi?id=44316 -
trunk/LayoutTests/platform/mac/Skipped
r101025 r101069 272 272 inspector/debugger/live-edit.html 273 273 274 # https://bugs.webkit.org/show_bug.cgi?id=53003 275 http/tests/inspector/compiler-source-mapping-debug.html 276 274 277 # Safari doesn't allow to customize outermost scrollbars. 275 278 # https://bugs.webkit.org/show_bug.cgi?id=43960 -
trunk/LayoutTests/platform/qt/Skipped
r101043 r101069 215 215 # https://bugs.webkit.org/show_bug.cgi?id=40300 216 216 inspector/debugger/live-edit.html 217 218 # https://bugs.webkit.org/show_bug.cgi?id=53003 219 http/tests/inspector/compiler-source-mapping-debug.html 217 220 218 221 # Needs rebaseline -
trunk/LayoutTests/platform/win/Skipped
r101025 r101069 1199 1199 inspector/debugger/live-edit.html 1200 1200 1201 # https://bugs.webkit.org/show_bug.cgi?id=53003 1202 http/tests/inspector/compiler-source-mapping-debug.html 1203 1201 1204 # <https://bugs.webkit.org/show_bug.cgi?id=44484> 1202 1205 svg/batik/paints/patternRegions-positioned-objects.svg -
trunk/LayoutTests/platform/wincairo/Skipped
r101025 r101069 1716 1716 inspector/debugger/live-edit.html 1717 1717 1718 # https://bugs.webkit.org/show_bug.cgi?id=53003 1719 http/tests/inspector/compiler-source-mapping-debug.html 1720 1718 1721 # <https://bugs.webkit.org/show_bug.cgi?id=44484> 1719 1722 svg/batik/paints/patternRegions-positioned-objects.svg -
trunk/Source/WebCore/ChangeLog
r101067 r101069 1 2011-11-18 Pavel Podivilov <podivilov@chromium.org> 2 3 Web Inspector: add integration test for compiler source maps. 4 https://bugs.webkit.org/show_bug.cgi?id=72730 5 6 Reviewed by Pavel Feldman. 7 8 Test: http/tests/inspector/compiler-source-mapping-debug.html 9 10 * inspector/front-end/DebuggerPresentationModel.js: 11 (WebInspector.DebuggerPresentationModel.prototype._bindScriptToRawSourceCode): 12 (WebInspector.DebuggerPresentationModel.prototype.setCompilerSourceMapping): 13 (WebInspector.DebuggerPresentationModel.prototype.evaluateInSelectedCallFrame): 14 (WebInspector.DebuggerPresentationModel.prototype.get executionLineLocation): 15 (WebInspector.DebuggerPresentationModel.DefaultLinkifierFormatter.prototype.formatRawSourceCodeAnchor): 16 (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyLocation): 17 (WebInspector.DebuggerPresentationModel.Linkifier.prototype._updateAnchor): 18 1 19 2011-11-23 Martin Robinson <mrobinson@igalia.com> 2 20 -
trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js
r100906 r101069 158 158 { 159 159 this._rawSourceCodeForScriptId[script.scriptId] = rawSourceCode; 160 this._rawSourceCodeForURL[script.sourceURL] = rawSourceCode; 160 this._rawSourceCodeForURL[script.sourceURL] = rawSourceCode; 161 161 }, 162 162 … … 337 337 338 338 /** 339 * @param {WebInspector.UISourceCode} uiSourceCode 340 * @param {string} sourceMappingURL 341 */ 342 setCompilerSourceMapping: function(uiSourceCode, sourceMappingURL) 343 { 344 var sourceMapping = new WebInspector.ClosureCompilerSourceMapping(sourceMappingURL); 345 uiSourceCode.rawSourceCode.setCompilerSourceMapping(sourceMapping); 346 }, 347 348 /** 339 349 * @param {WebInspector.Event} event 340 350 */ … … 552 562 else 553 563 callback(WebInspector.RemoteObject.fromPayload(result), wasThrown); 554 564 555 565 if (objectGroup === "console") 556 566 this.dispatchEventToListeners(WebInspector.DebuggerPresentationModel.Events.ConsoleCommandEvaluatedInSelectedCallFrame); 557 567 } 558 568 559 569 this.selectedCallFrame.evaluate(code, objectGroup, includeCommandLineAPI, returnByValue, didEvaluate.bind(this)); 560 570 }, … … 604 614 if (!this._selectedCallFrame.rawSourceCode.sourceMapping) 605 615 return; 606 616 607 617 var rawLocation = this._selectedCallFrame._callFrame.location; 608 618 var uiLocation = this._selectedCallFrame.rawSourceCode.sourceMapping.rawLocationToUILocation(rawLocation); … … 911 921 912 922 anchor.textContent = WebInspector.formatLinkText(uiLocation.uiSourceCode.url, uiLocation.lineNumber); 913 923 914 924 var text = WebInspector.formatLinkText(uiLocation.uiSourceCode.url, uiLocation.lineNumber); 915 925 if (this._maxLength) … … 945 955 if (!rawSourceCode) 946 956 return this.linkifyResource(sourceURL, lineNumber, classes); 947 957 948 958 return this.linkifyRawSourceCode(rawSourceCode, lineNumber, columnNumber, classes); 949 959 }, … … 1017 1027 anchor.uiSourceCode = uiLocation.uiSourceCode; 1018 1028 anchor.lineNumber = uiLocation.lineNumber; 1019 1029 1020 1030 this._formatter.formatRawSourceCodeAnchor(rawSourceCode, anchor); 1021 1031 }
Note:
See TracChangeset
for help on using the changeset viewer.