Index: chrome/test/data/webui/options_page_contentexceptions.js |
diff --git a/chrome/test/data/webui/options_page_contentexceptions.js b/chrome/test/data/webui/options_page_contentexceptions.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ae6d532527378151edfbaef51cf53ce69a429920 |
--- /dev/null |
+++ b/chrome/test/data/webui/options_page_contentexceptions.js |
@@ -0,0 +1,26 @@ |
+// 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 ContentExceptionsOptionsPage WebUI testing. |
+ * @extends {testing.Test} |
+ * @constructor |
+ **/ |
+function ContentExceptionsOptionsWebUITest() {} |
+ |
+ContentExceptionsOptionsWebUITest.prototype = { |
+ __proto__: testing.Test.prototype, |
+ |
+ /** |
+ * Browse to the contentExceptions options page & call our PreLoad(). |
+ **/ |
+ browsePreload: 'chrome://settings/contentExceptions', |
+}; |
+ |
+// Test opening the contentExceptions page has correct location, instance, and |
+// title. |
+TEST_F('ContentExceptionsOptionsWebUITest', 'testOpenContentExceptionsPage', |
+ function() { |
+ assertEquals(this.browsePreload, document.location.href); |
+ }); |