Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js
index 625a7a693602343c6b792789edfcd552dd2673ff..3b0d95e491d31ca9577905cb825b09a72c7d7e9c 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/sources-test.js
@@ -6,9 +6,9 @@ function testSourceMapping(text1, text2, mapping, testToken)
{
var originalPosition = text1.indexOf(testToken);
InspectorTest.assertTrue(originalPosition !== -1);
- var originalLocation = WebInspector.Formatter.positionToLocation(text1.computeLineEndings(), originalPosition);
+ var originalLocation = Sources.Formatter.positionToLocation(text1.computeLineEndings(), originalPosition);
var formattedLocation = mapping.originalToFormatted(originalLocation[0], originalLocation[1]);
- var formattedPosition = WebInspector.Formatter.locationToPosition(text2.computeLineEndings(), formattedLocation[0], formattedLocation[1]);
+ var formattedPosition = Sources.Formatter.locationToPosition(text2.computeLineEndings(), formattedLocation[0], formattedLocation[1]);
var expectedFormattedPosition = text2.indexOf(testToken);
if (expectedFormattedPosition === formattedPosition)
InspectorTest.addResult(String.sprintf("Correct mapping for <%s>", testToken));
@@ -18,7 +18,7 @@ function testSourceMapping(text1, text2, mapping, testToken)
InspectorTest.testPrettyPrint = function(mimeType, text, mappingQueries, next)
{
- new WebInspector.ScriptFormatter(mimeType, text, didFormatContent);
+ new Sources.ScriptFormatter(mimeType, text, didFormatContent);
function didFormatContent(formattedSource, mapping)
{

Powered by Google App Engine
This is Rietveld 408576698