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

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

Issue 6902019: Revert 82950 - Add a test for checking that refreshing a page does load the same WebUI page.BUG=5... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/ui/webui/settings_browsertest.cc ('k') | chrome/test/data/webui/test_api.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings.js
===================================================================
--- chrome/test/data/webui/settings.js (revision 82956)
+++ chrome/test/data/webui/settings.js (working copy)
@@ -2,19 +2,6 @@
// 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');
@@ -22,13 +9,3 @@
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);
-}
« no previous file with comments | « chrome/browser/ui/webui/settings_browsertest.cc ('k') | chrome/test/data/webui/test_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698