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

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

Issue 1912973002: [DevTools] JSONView parsing smarter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-preview-json.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dc20622a8a74a2b7a7984414e25a72e8dbd1de20..576ae9322fac1868e345c3bf721ff218f56ad9db 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
@@ -16,16 +16,20 @@ function test()
function testPreviewer(request)
{
- var previewView = new WebInspector.RequestPreviewView(request, null);
- var previewer = previewView._createPreviewView();
- InspectorTest.addResult("Its previewer is the JSON previewer: " + (previewer && previewer instanceof WebInspector.JSONView));
+ return new Promise(function(done) {
+ var previewView = new WebInspector.RequestPreviewView(request, null);
+
+ previewView._createPreviewView(function(previewer) {
+ InspectorTest.addResult("Its previewer is the JSON previewer: " + (previewer && previewer instanceof WebInspector.JSONView));
+ done();
+ });
+ });
}
function testType(contentType, callback)
{
var request = createNetworkRequestWithJSONMIMEType(contentType);
- testPreviewer(request);
- callback();
+ testPreviewer(request).then(callback);
}
InspectorTest.runTestSuite([
function test1(next)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-preview-json.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698