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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/gallery/test_util.js

Issue 448973003: Gallery: Fix undo of cropping images. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 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
Index: chrome/test/data/extensions/api_test/file_manager_browsertest/gallery/test_util.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/gallery/test_util.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/gallery/test_util.js
index f81f6b692168e7cc77ec1995949cbc083789f801..25c7f3b6e8d966decafd996674a7a65256a73398 100644
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/gallery/test_util.js
+++ b/chrome/test/data/extensions/api_test/file_manager_browsertest/gallery/test_util.js
@@ -145,3 +145,13 @@ function sendKeyDown(appWindow, query, keyIdentifier) {
'keydown',
{bubbles: true, keyIdentifier: keyIdentifier}));
}
+
+/**
+ * Observes window errors that should fail the browser tests.
+ * @param {DOMWindow} window Windows to be obserbed.
+ */
+function observeWindowError(window) {
+ window.onerror = function(error) {
+ chrome.test.fail('window.onerror: ' + error);
+ };
+}

Powered by Google App Engine
This is Rietveld 408576698