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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/elements-panel-rewrite-href.html

Issue 2265823002: DevTools: fix instances where asParsedURL is null (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix instances with parsedURL Created 4 years, 4 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/Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/elements/elements-panel-rewrite-href.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-rewrite-href.html b/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-rewrite-href.html
index de009599f69ed2bb789537dacba8b9a182982ac3..d612d373401ab441160bf065ae04f0938cf5d7c6 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-rewrite-href.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/elements-panel-rewrite-href.html
@@ -29,8 +29,10 @@ function test()
continue;
}
var parsedURL = href.asParsedURL();
- if (!parsedURL)
+ if (!parsedURL) {
testController.notifyDone("FAIL: no URL match for <" + href + ">");
+ continue;
+ }
var split = parsedURL.path.split("/");
for (var i = split.length - 1, j = 0; j < 3 && i >= 0; --i, ++j)
segments.push(split[i]);
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698