Commit 53a19740 authored by dgozman's avatar dgozman Committed by Commit bot

[DevTools] Remove workspace-test.js part3.

Extracted the meaningful part of the test which checks
multiple scripts in the same html file.

BUG=none

Review-Url: https://codereview.chromium.org/2537023002
Cr-Commit-Position: refs/heads/master@{#434913}
parent 97c594d8
Tests ResourceScriptMapping class.
Running: testScriptWithPendingResource
Adding script for pending request.
UISourceCode: debugger:///VM1 foo.js
UISourceCode is content script: false
Highlighter type: text/javascript
UISourceCode content: <content script source>
Adding uiSourceCode for finished resource.
UISourceCode: foo.js
UISourceCode is content script: false
Highlighter type: text/javascript
UISourceCode content: <content script resource content>
Running: testScriptWithFinishedResource
Adding uiSourceCode for finished resource.
UISourceCode: foo.js
UISourceCode is content script: false
Highlighter type: text/javascript
UISourceCode content: <script resource content>
Adding script for finished request.
UISourceCode: foo.js
UISourceCode is content script: false
Highlighter type: text/javascript
UISourceCode content: <script resource content>
Running: testHTMLWithPendingResource
Adding first script for pending request.
UISourceCode: debugger:///VM3 index.html
UISourceCode is content script: false
Highlighter type: text/html
UISourceCode content: <script source 1>
Adding second script for pending request.
UISourceCode: debugger:///VM4 index.html
UISourceCode is content script: false
Highlighter type: text/html
UISourceCode content: <script source 2>
Adding uiSourceCode for finished resource.
UISourceCode: index.html
UISourceCode is content script: false
Highlighter type: text/html
UISourceCode content: <resource content>
Running: testHTMLWithFinishedResource
Adding uiSourceCode for finished resource.
UISourceCode: index.html
UISourceCode is content script: false
Highlighter type: text/html
UISourceCode content: <resource content>
Adding first script for finished request.
UISourceCode: index.html
UISourceCode is content script: false
Highlighter type: text/html
UISourceCode content: <resource content>
Adding second script for finished request.
UISourceCode: index.html
UISourceCode is content script: false
Highlighter type: text/html
UISourceCode content: <resource content>
Waiting for scripts
Script arrived
Script arrived
Script arrived
Waiting for UISourceCode
UISourceCode arrived
Checking script at (3, 8)
Checking script at (11, 12)
Checking script at (16, 8)
<body>
<script>
window.x = 1;
var foo = 1;
foo = 2;
</script>
<script>
var bar = 1;
bar = 2;
// If we put next two tags on the same line, script ranges overlap and frontend gets wrong uiLocationToRawLocation.
</script>
<script>var baz = 3;baz = 2;</script>
</body>
\ No newline at end of file
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