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

Unified Diff: third_party/WebKit/Source/devtools/front_end/Tests.js

Issue 2151573002: [DevTools] Fix window object init on chrome://* pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 5 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: third_party/WebKit/Source/devtools/front_end/Tests.js
diff --git a/third_party/WebKit/Source/devtools/front_end/Tests.js b/third_party/WebKit/Source/devtools/front_end/Tests.js
index 268f62c932c955791f0e865e38a48117adb0d2ee..34c582f47678ce17db02d19073e58e1b3731018d 100644
--- a/third_party/WebKit/Source/devtools/front_end/Tests.js
+++ b/third_party/WebKit/Source/devtools/front_end/Tests.js
@@ -899,6 +899,15 @@ TestSuite.prototype.testSettings = function()
}
}
+TestSuite.prototype.testWindowInitializedOnNavigateBack = function()
+{
+ var messages = WebInspector.multitargetConsoleModel.messages();
+ this.assertEquals(1, messages.length);
+ var text = messages[0].messageText;
+ if (text.indexOf("Uncaught") !== -1)
+ this.fail(text);
+};
+
TestSuite.prototype.waitForTestResultsInConsole = function()
{
var messages = WebInspector.multitargetConsoleModel.messages();

Powered by Google App Engine
This is Rietveld 408576698