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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/json-preview.html

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/network/json-preview.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/json-preview.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/json-preview.html
index f42f98c18f590f6ccafe328b098756e472da2176..5e869df7823482806aa0b0df052a495e003c4483 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/json-preview.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/json-preview.html
@@ -8,7 +8,7 @@ function test()
function createNetworkRequestWithJSONMIMEType(type)
{
InspectorTest.addResult("Creating a NetworkRequest with type: " + type);
- var request = new WebInspector.NetworkRequest(WebInspector.targetManager.mainTarget(), 0, 'http://localhost');
+ var request = new SDK.NetworkRequest(SDK.targetManager.mainTarget(), 0, 'http://localhost');
request.mimeType = type;
request._content = '{"number": 42}';
return request;
@@ -17,11 +17,11 @@ function test()
function testPreviewer(request)
{
return new Promise(function(done) {
- var previewView = new WebInspector.RequestPreviewView(request, null);
+ var previewView = new Network.RequestPreviewView(request, null);
previewView._createPreviewView(function(previewer) {
- InspectorTest.addResult("Its previewer is searchable: " + (previewer && previewer instanceof WebInspector.SearchableView));
- InspectorTest.addResult("Its previewer is the JSON previewer: " + (previewer && previewer._searchProvider && previewer._searchProvider instanceof WebInspector.JSONView));
+ InspectorTest.addResult("Its previewer is searchable: " + (previewer && previewer instanceof UI.SearchableView));
+ InspectorTest.addResult("Its previewer is the JSON previewer: " + (previewer && previewer._searchProvider && previewer._searchProvider instanceof Network.JSONView));
done();
});
});

Powered by Google App Engine
This is Rietveld 408576698