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

Unified Diff: remoting/webapp/browser_test/browser_test.js

Issue 840023004: Implement mocks for identity and host-list, add a browser test to test the app in various failure m… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing file. Created 5 years, 11 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: remoting/webapp/browser_test/browser_test.js
diff --git a/remoting/webapp/browser_test/browser_test.js b/remoting/webapp/browser_test/browser_test.js
index a35e57d24ce014b7c4f5a648407ddccebf3f8abb..305f65a72cc0a5577c6ea6239ac3c6acbcbd2155 100644
--- a/remoting/webapp/browser_test/browser_test.js
+++ b/remoting/webapp/browser_test/browser_test.js
@@ -44,7 +44,7 @@
'use strict';
-var browserTest = {};
+var browserTest = browserTest || {};
browserTest.init = function() {
// The domAutomationController is used to communicate progress back to the
@@ -107,16 +107,10 @@ browserTest.pass = function() {
browserTest.clickOnControl = function(id) {
var element = document.getElementById(id);
- browserTest.expect(element);
+ browserTest.expect(element, 'No such element: ' + id);
element.click();
};
-/** @enum {number} */
-browserTest.Timeout = {
- NONE: -1,
- DEFAULT: 5000
-};
-
browserTest.onUIMode = function(expectedMode, opt_timeout) {
if (expectedMode == remoting.currentMode) {
// If the current mode is the same as the expected mode, return a fulfilled
@@ -330,4 +324,4 @@ browserTest.ensureRemoteConnectionEnabled = function(pin) {
});
};
-browserTest.init();
+browserTest.init();

Powered by Google App Engine
This is Rietveld 408576698