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

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

Issue 1130553002: Web component test framework (wcTest.BrowserTest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@MochaAdapter
Patch Set: Created 5 years, 7 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/cr_elements_browsertest.js
diff --git a/chrome/test/data/webui/cr_elements_browsertest.js b/chrome/test/data/webui/cr_elements_browsertest.js
new file mode 100644
index 0000000000000000000000000000000000000000..93cb21606bbaef31ddf92bbf860ecb8a0fb68231
--- /dev/null
+++ b/chrome/test/data/webui/cr_elements_browsertest.js
@@ -0,0 +1,33 @@
+// Copyright 2015 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.
+
+/** @fileoverview Runs the Chromium Polymer elements tests. */
+
+// WebComponentTest fixture.
+GEN_INCLUDE(['web_component_test.js']);
+
+// Individual component tests.
+GEN_INCLUDE([
+ 'cr_checkbox_tests.js',
+]);
+
+/**
+ * Test fixture for Chromium Polymer components.
+ * @constructor
+ * @extends {wcTest.BrowserTest}
+*/
+function CrElementsBrowserTest() {}
+
+CrElementsBrowserTest.prototype = {
+ __proto__: wcTest.BrowserTest.prototype,
+};
+
+// Runs all tests.
+TEST_F('CrElementsBrowserTest', 'CrElementsTest', function() {
+ // Register Mocha tests for each component.
+ RegisterCrCheckboxTests();
+
+ // Run all registered tests.
+ mocha.run();
+});

Powered by Google App Engine
This is Rietveld 408576698