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

Unified Diff: chrome/browser/ui/webui/options/advanced_options_browsertest.js

Issue 9814030: get rid of old options pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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/ui/webui/options/advanced_options_browsertest.js
diff --git a/chrome/browser/ui/webui/options/advanced_options_browsertest.js b/chrome/browser/ui/webui/options/advanced_options_browsertest.js
deleted file mode 100644
index a929bbbc83c624a99fcb23f18f184495e12e6790..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/options/advanced_options_browsertest.js
+++ /dev/null
@@ -1,63 +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.
-
-/**
- * TestFixture for advanced options WebUI testing.
- * @extends {testing.Test}
- * @constructor
- **/
-function AdvancedOptionsWebUITest() {}
-
-AdvancedOptionsWebUITest.prototype = {
- __proto__: testing.Test.prototype,
-
- /**
- * Browse to advanced options.
- **/
- browsePreload: 'chrome://settings/advanced',
-
- /**
- * Register a mock handler.
- * @type {Function}
- * @override
- */
- preLoad: function() {
- this.makeAndRegisterMockHandler(['defaultZoomFactorAction']);
- },
-};
-
-/**
- * The expected minimum length of the |defaultZoomFactor| element.
- * @type {number}
- * @const
- */
-var defaultZoomFactorMinimumLength = 10;
-
-/**
- * Test opening the advanced options has correct location.
- */
-TEST_F('AdvancedOptionsWebUITest', 'testOpenAdvancedOptions', function() {
- assertEquals(this.browsePreload, document.location.href);
-});
-
-/**
- * Test the default zoom factor select element.
- */
-TEST_F('AdvancedOptionsWebUITest', 'testDefaultZoomFactor', function() {
- // Verify that the zoom factor element exists.
- var defaultZoomFactor = $('defaultZoomFactor');
- assertNotEquals(defaultZoomFactor, null);
-
- // Verify that the zoom factor element has a reasonable number of choices.
- expectGE(defaultZoomFactor.options.length, defaultZoomFactorMinimumLength);
-
- // Simulate a change event, selecting the highest zoom value. Verify that
- // the javascript handler was invoked once.
- this.mockHandler.expects(once()).defaultZoomFactorAction(NOT_NULL).
- will(callFunction(function() { }));
- defaultZoomFactor.selectedIndex = defaultZoomFactor.options.length - 1;
- var event = { target: defaultZoomFactor };
- if (defaultZoomFactor.onchange) defaultZoomFactor.onchange(event);
-});
-

Powered by Google App Engine
This is Rietveld 408576698