'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);
+ };
+}