Commit fc2c7c8e authored by vsevik@chromium.org's avatar vsevik@chromium.org
Browse files

Unreviewed tests fix.

* http/tests/inspector/workspace-test.js:
* inspector/debugger/dynamic-script-tag-expected.txt:
* inspector/debugger/dynamic-script-tag.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 40aaeec9
2012-09-04 Vsevolod Vlasov <vsevik@chromium.org>
Unreviewed tests fix.
* http/tests/inspector/workspace-test.js:
* inspector/debugger/dynamic-script-tag-expected.txt:
* inspector/debugger/dynamic-script-tag.html:
2012-09-04 Vsevolod Vlasov <vsevik@chromium.org>
 
Web Inspector: Create JavaScriptSources based on network resources.
......@@ -50,7 +50,8 @@ InspectorTest._defaultUISourceCodeProviderEventHandler = function(event)
InspectorTest.dumpUISourceCode = function(uiSourceCode, callback)
{
InspectorTest.addResult("UISourceCode: " + uiSourceCode.url);
var url = uiSourceCode.url.replace(/.*LayoutTests/, "LayoutTests");
InspectorTest.addResult("UISourceCode: " + url);
if (uiSourceCode instanceof WebInspector.JavaScriptSource) {
InspectorTest.addResult("UISourceCode is editable: " + uiSourceCode._isEditable);
InspectorTest.addResult("UISourceCode is content script: " + uiSourceCode.isContentScript);
......
......@@ -2,20 +2,20 @@ Tests that inline scripts and document.write scripts get different uiSourceCodes
Debugger was enabled.
Dumping scripts:
script1: file:///usr/local/google/home/vsevik/chromium/src/third_party/WebKit/LayoutTests/inspector/debugger/dynamic-script-tag.html
script1: LayoutTests/inspector/debugger/dynamic-script-tag.html
Is anonymous:false
Is inline script:false
script2: file:///usr/local/google/home/vsevik/chromium/src/third_party/WebKit/LayoutTests/inspector/debugger/dynamic-script-tag.html
script2: LayoutTests/inspector/debugger/dynamic-script-tag.html
Is anonymous:false
Is inline script:false
Dumping uiSourceCodes:
UISourceCode: file:///usr/local/google/home/vsevik/chromium/src/third_party/WebKit/LayoutTests/inspector/debugger/dynamic-script-tag.html (1)
UISourceCode: LayoutTests/inspector/debugger/dynamic-script-tag.html (1)
UISourceCode is editable: true
UISourceCode is content script: false
Mime type: text/javascript
UISourceCode content: function foo() { }
UI resource: null
UISourceCode: file:///usr/local/google/home/vsevik/chromium/src/third_party/WebKit/LayoutTests/inspector/debugger/dynamic-script-tag.html (2)
UISourceCode: LayoutTests/inspector/debugger/dynamic-script-tag.html (2)
UISourceCode is editable: true
UISourceCode is content script: false
Mime type: text/javascript
......
......@@ -49,7 +49,8 @@ var test = function()
InspectorTest.addResult("Dumping scripts:");
for (var i = 0; i < scripts.length; ++i) {
var script = scripts[i];
InspectorTest.addResult("script" + (i+1) + ": " + script.sourceURL);
var url = script.sourceURL.replace(/.*LayoutTests/, "LayoutTests");
InspectorTest.addResult("script" + (i+1) + ": " + url);
InspectorTest.addResult("Is anonymous:" + script.isAnonymousScript());
InspectorTest.addResult("Is inline script:" + script.isInlineScript());
uiSourceCodes.push(script.rawLocationToUILocation(0, 0).uiSourceCode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment