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

Unified Diff: polymer_0.5.0/bower_components/web-animations-js/test/runner.js

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 12 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: polymer_0.5.0/bower_components/web-animations-js/test/runner.js
diff --git a/polymer_0.5.0/bower_components/web-animations-js/test/runner.js b/polymer_0.5.0/bower_components/web-animations-js/test/runner.js
new file mode 100644
index 0000000000000000000000000000000000000000..4e78b1346d1482628883bcdc506611c2134ef032
--- /dev/null
+++ b/polymer_0.5.0/bower_components/web-animations-js/test/runner.js
@@ -0,0 +1,35 @@
+var WEB_ANIMATIONS_TESTING = true;
+var webAnimationsTesting = window;
+var assert = chai.assert;
+mocha.setup({ ui: 'tdd' });
+
+function loadWebAnimationsBuildTarget(target) {
+ var config = webAnimationsTargetConfig[target];
+ config.src.concat(config.test).forEach(function(file) {
+ document.write('<script src="../' + file + '"></script>\n');
+ });
+}
+
+(function() {
+
+ var pageError = null;
+
+ addEventListener('error', function(event) {
+ pageError = event.filename + ':' + event.lineno + ' ' + event.message;
+ });
+
+ addEventListener('load', function() {
+
+ // Inject test suite for page errors if any encountered.
+ if (pageError) {
+ suite('page-script-errors', function() {
+ test('no script errors on page', function() {
+ assert.fail(null, null, pageError);
+ });
+ });
+ }
+
+ mocha.run();
+ });
+
+})();

Powered by Google App Engine
This is Rietveld 408576698