Skip to content

Commit 2db6ea0

Browse files
committed
Working without expectations
1 parent 75e1827 commit 2db6ea0

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

Gruntfile.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,7 @@ module.exports = function(grunt) {
227227
});
228228
}
229229
function runWebPlatformTests() {
230-
if (!config.runWebPlatformTests) {
231-
return Promise.resolve(true);
232-
}
233-
234-
var testFiles = filterTests(grunt.file.expand('test/web-platform-tests/web-animations/**/*.html'));
230+
var testFiles = filterTests(grunt.file.expand(config.webPlatformTests));
235231
if (testFiles.length == 0) {
236232
return Promise.resolve(true);
237233
}

target-config.js

+23-3
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,26 @@
110110
'test/js/timeline.js',
111111
'test/js/web-animations-next-animation.js');
112112

113+
var webAnimations1WebPlatformTests = [
114+
'test/web-platform-tests/web-animations/animation-model/animation-types/discrete-animation.html',
115+
'test/web-platform-tests/web-animations/animation-model/keyframe-effects/effect-value-context.html',
116+
'test/web-platform-tests/web-animations/animation-model/keyframe-effects/the-effect-value-of-a-keyframe-effect.html',
117+
'test/web-platform-tests/web-animations/interfaces/Animatable/animate-basic.html',
118+
'test/web-platform-tests/web-animations/interfaces/Animation/cancel.html',
119+
'test/web-platform-tests/web-animations/interfaces/Animation/id.html',
120+
'test/web-platform-tests/web-animations/interfaces/Animation/pause.html',
121+
'test/web-platform-tests/web-animations/interfaces/Animation/play.html',
122+
'test/web-platform-tests/web-animations/interfaces/Animation/playState.html',
123+
'test/web-platform-tests/web-animations/interfaces/Animation/startTime.html',
124+
'test/web-platform-tests/web-animations/interfaces/KeyframeEffect/effect-easing.html',
125+
'test/web-platform-tests/web-animations/timing-model/animation-effects/active-time.html',
126+
'test/web-platform-tests/web-animations/timing-model/animation-effects/simple-iteration-progress.html',
127+
];
128+
129+
var webAnimationsNextWebPlatformTests = [
130+
'test/web-platform-tests/web-animations/**/*.html',
131+
];
132+
113133
// This object specifies the source and test files for different Web Animation build targets.
114134
var targetConfig = {
115135
'web-animations': {
@@ -120,7 +140,7 @@
120140
webAnimationsNextSrc: [],
121141
src: scopeSrc.concat(sharedSrc).concat(webAnimations1Src).concat(webAnimations1BonusSrc),
122142
polyfillTests: webAnimations1PolyfillTests,
123-
runWebPlatformTests: false,
143+
webPlatformTests: webAnimations1WebPlatformTests,
124144
},
125145
'web-animations-next': {
126146
scopeSrc: scopeSrc,
@@ -130,7 +150,7 @@
130150
webAnimationsNextSrc: webAnimationsNextSrc,
131151
src: scopeSrc.concat(sharedSrc).concat(webAnimations1Src).concat(webAnimations1BonusSrc).concat(webAnimationsNextSrc),
132152
polyfillTests: webAnimationsNextPolyfillTests,
133-
runWebPlatformTests: true,
153+
webPlatformTests: webAnimationsNextWebPlatformTests,
134154
},
135155
'web-animations-next-lite': {
136156
scopeSrc: scopeSrc,
@@ -140,7 +160,7 @@
140160
webAnimationsNextSrc: webAnimationsNextSrc,
141161
src: scopeSrc.concat(sharedSrc).concat(liteWebAnimations1Src).concat(webAnimations1BonusSrc).concat(webAnimationsNextSrc),
142162
polyfillTests: [],
143-
runWebPlatformTests: false,
163+
webPlatformTests: [],
144164
},
145165
};
146166

0 commit comments

Comments
 (0)