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

Unified Diff: chrome/browser/resources/gaia_auth/test/content.js

Issue 13542003: Add browser test for new user CrOS login flow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/browser/resources/gaia_auth/test/content.js
diff --git a/chrome/browser/resources/gaia_auth/test/content.js b/chrome/browser/resources/gaia_auth/test/content.js
index 459a5b059506edf2289e39c06f5ff3bda3d4cd13..1bf055f03e2163c024c6283cf39273c51e664888 100644
--- a/chrome/browser/resources/gaia_auth/test/content.js
+++ b/chrome/browser/resources/gaia_auth/test/content.js
@@ -15,16 +15,20 @@ function getQueryParam(key, defaultVal) {
return qs[1];
}
+console.log(document.URL);
if (document.URL.match(/https\:\/\/www\.google\.com\/accounts\/ServiceLogin/) ||
document.URL.match(/https\:\/\/accounts\.google\.com\/ServiceLogin/) ||
document.URL.match(
/https\:\/\/gaiastaging\.corp\.google\.com\/ServiceLogin/) ||
- document.URL.match(/https\:\/\/insecure\.com\/accounts\/ServiceLogin/)) {
+ document.URL.match(/https\:\/\/insecure\.com\/accounts\/ServiceLogin/) ||
+ document.URL.match(/http\:\/\/localhost(:[0-9]*)?\/ServiceLogin/)) {
var testEmail = unescape(getQueryParam('test_email'));
var testPassword = unescape(getQueryParam('test_pwd'));
+ var testContinue = unescape(getQueryParam('continue'));
console.log('Got test account info: ' + testEmail + '/' + testPassword);
document.getElementById('Email').value = testEmail;
document.getElementById('Passwd').value = testPassword;
+ document.getElementById('continue').value = testContinue;
console.log('Form field changed!');
if (testEmail != '') {
document.getElementById('signIn').click();

Powered by Google App Engine
This is Rietveld 408576698