Skip to content

Commit 73b7795

Browse files
authored
Merge pull request #490 from alancutter/disableFallback
Disable native fallback during web-platform-tests
2 parents 39135b7 + cf2c666 commit 73b7795

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/resources/testharnessreport.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,19 @@ function dump_test_results(tests, status) {
406406
}
407407

408408
/* BEGIN WEB ANIMATIONS POLYFILL EXTRAS */
409+
410+
// Disable native Web Animations fallback.
411+
// TODO(alancutter): Make this configurable in testing targets.
412+
Element.prototype.animate = null;
413+
409414
// The path /base/polyfill.js is expected to be a proxy for the appropriate polyfill script configured in Karma.
410415
document.write('<script src="/base/polyfill.js"></script>');
411416
if (window.parent && parent.window.onTestharnessLoaded) {
412417
parent.window.onTestharnessLoaded(window);
413418
} else {
414419
metadata_generator.setup();
415420
}
421+
416422
/* END WEB ANIMATIONS POLYFILL EXTRAS */
417423

418424
/* If the parent window has a testharness_properties object,

0 commit comments

Comments
 (0)