| 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();
|
| });
|
| });
|
|
|