Index: LayoutTests/media/track/track-insert-after-load-crash.html |
diff --git a/LayoutTests/media/track/track-insert-after-load-crash.html b/LayoutTests/media/track/track-insert-after-load-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f429356ff52229602caaadfda39a39559ee6d225 |
--- /dev/null |
+++ b/LayoutTests/media/track/track-insert-after-load-crash.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <script src="../media-file.js"></script> |
+ <script src="../video-test.js"></script> |
+ </head> |
+ <body> |
+ <p>Tests that inserting a <track> element immediately after a load() doesn't crash.</p> |
+ <video id="v"></video> |
+ <script> |
+ var v = document.querySelector('#v'); |
+ v.src = findMediaFile('video', '../content/test'); |
+ v.load(); |
+ v.appendChild(document.createElement('track')); |
+ v.addEventListener('loadedmetadata', endTest); |
+ </script> |
+ </body> |
+</html> |