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

Unified Diff: LayoutTests/media/video-source-add-after-remove.html

Issue 360103003: Test adding a <source> element after removing a failed candidate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/media/video-source-add-after-remove-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-source-add-after-remove.html
diff --git a/LayoutTests/media/video-source-add-after-remove.html b/LayoutTests/media/video-source-add-after-remove.html
new file mode 100644
index 0000000000000000000000000000000000000000..ab56876c43b928a26deeb4ca0522f67638528167
--- /dev/null
+++ b/LayoutTests/media/video-source-add-after-remove.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Add &lt;source> after removing failed candidate</title>
+ <script src=video-test.js></script>
+ <script src=media-file.js></script>
+ <script>
+ function error()
+ {
+ findMediaElement();
+ video.removeChild(video.firstChild);
+ var source = document.createElement("source");
+ source.src = findMediaFile("video", "content/test");
+ video.appendChild(source);
+ waitForEventAndEnd("loadedmetadata");
+ }
+ </script>
+ </head>
+
+ <body>
+ <video><source onerror="error()"></video>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/media/video-source-add-after-remove-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698