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

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

Issue 220903002: DevTools: wrap DebuggerAgent.Location with DebuggerModel.Location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All tests!!! Created 6 years, 9 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
Index: LayoutTests/http/tests/inspector/inspector-test.js
diff --git a/LayoutTests/http/tests/inspector/inspector-test.js b/LayoutTests/http/tests/inspector/inspector-test.js
index 0984a710ae0ab4895ba17b3e6ee04394522c707c..fe9046dcdd51c5f0c8d2aec47af53bc6f381df5e 100644
--- a/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/LayoutTests/http/tests/inspector/inspector-test.js
@@ -120,15 +120,12 @@ InspectorTest.addResults = function(textArray)
InspectorTest.addResult(textArray[i]);
}
-function onError(event)
+window.onerror = function (message, filename, lineno, colno, error)
{
- window.removeEventListener("error", onError);
- InspectorTest.addResult("Uncaught exception in inspector front-end: " + event.message + " [" + event.filename + ":" + event.lineno + "]");
+ InspectorTest.addResult("Uncaught exception in inspector front-end: " + message + " [" + error.stack + "]");
InspectorTest.completeTest();
}
-window.addEventListener("error", onError);
-
InspectorTest.formatters = {};
InspectorTest.formatters.formatAsTypeName = function(value)

Powered by Google App Engine
This is Rietveld 408576698