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

Unified Diff: chrome/test/data/webui/settings.js

Issue 7237030: Added options browser_tests using the generator and js handler framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added documentation for newly added classes. Created 9 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: chrome/test/data/webui/settings.js
diff --git a/chrome/test/data/webui/settings.js b/chrome/test/data/webui/settings.js
deleted file mode 100644
index 2e4453687a150db20d2ac88c713ef3447ce5ef73..0000000000000000000000000000000000000000
--- a/chrome/test/data/webui/settings.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Utility functions for settings WebUI page.
-function refreshPage() {
- window.location.reload();
-}
-
-function openUnderTheHood() {
- var item = $('advancedPageNav');
- assertTrue(item != null);
- assertTrue(item.onclick != null);
- item.onclick();
-}
-
-// Tests.
-function testSetBooleanPrefTriggers() {
- // TODO(dtseng): make generic to click all buttons.
- var showHomeButton = $('toolbarShowHomeButton');
- assertTrue(showHomeButton != null);
- showHomeButton.click();
- showHomeButton.blur();
-}
-
-function testPageIsUnderTheHood() {
- var pageInstance = AdvancedOptions.getInstance();
- var topPage = OptionsPage.getTopmostVisiblePage();
- var expectedTitle = pageInstance.title;
- var actualTitle = document.title;
- assertEquals("chrome://settings/advanced", document.location.href);
- assertEquals(expectedTitle, actualTitle);
- assertEquals(pageInstance, topPage);
-}

Powered by Google App Engine
This is Rietveld 408576698