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

Side by Side 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, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 var WEB_ANIMATIONS_TESTING = true;
2 var webAnimationsTesting = window;
3 var assert = chai.assert;
4 mocha.setup({ ui: 'tdd' });
5
6 function loadWebAnimationsBuildTarget(target) {
7 var config = webAnimationsTargetConfig[target];
8 config.src.concat(config.test).forEach(function(file) {
9 document.write('<script src="../' + file + '"></script>\n');
10 });
11 }
12
13 (function() {
14
15 var pageError = null;
16
17 addEventListener('error', function(event) {
18 pageError = event.filename + ':' + event.lineno + ' ' + event.message;
19 });
20
21 addEventListener('load', function() {
22
23 // Inject test suite for page errors if any encountered.
24 if (pageError) {
25 suite('page-script-errors', function() {
26 test('no script errors on page', function() {
27 assert.fail(null, null, pageError);
28 });
29 });
30 }
31
32 mocha.run();
33 });
34
35 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698