| Index: third_party/WebKit/LayoutTests/media/video-src-change.html
|
| diff --git a/third_party/WebKit/LayoutTests/media/video-src-change.html b/third_party/WebKit/LayoutTests/media/video-src-change.html
|
| index 7ad40bec30c0f98734f9945ca2c0a2aa01918991..624ce21b3ad0ae8a4ca096085730ce0a0e2a142a 100644
|
| --- a/third_party/WebKit/LayoutTests/media/video-src-change.html
|
| +++ b/third_party/WebKit/LayoutTests/media/video-src-change.html
|
| @@ -1,12 +1,14 @@
|
| <html>
|
| <head>
|
| + <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
|
| + (Please avoid writing new tests using video-test.js) -->
|
| <script src=video-test.js></script>
|
| <script src=media-file.js></script>
|
| <script>
|
| var mediaFile;
|
| var loadedCount = 0;
|
| var errorCount = 0;
|
| -
|
| +
|
| function errorEvent()
|
| {
|
| testExpected("relativeURL(video.currentSrc)", "bogus");
|
| @@ -21,13 +23,13 @@
|
| setSrcAttribure(findMediaFile("video", "content/test"));
|
| consoleWrite("");
|
| }
|
| -
|
| +
|
| function loadedmetadata()
|
| {
|
| testExpected("stripExtension(relativeURL(video.currentSrc))", stripExtension(mediaFile));
|
| testExpected("isNaN(video.duration)", false);
|
| consoleWrite("");
|
| -
|
| +
|
| if (++loadedCount >= 2) {
|
| mediaElement.removeEventListener('loadedmetadata', loadedmetadata);
|
| endTest();
|
| @@ -37,13 +39,13 @@
|
| setSrcAttribure(findMediaFile("video", "content/counting"));
|
| consoleWrite("");
|
| }
|
| -
|
| +
|
| function setSrcAttribure(src)
|
| {
|
| mediaFile = src;
|
| video.setAttribute('src', src);
|
| }
|
| -
|
| +
|
| function setup()
|
| {
|
| findMediaElement();
|
| @@ -56,7 +58,7 @@
|
| </head>
|
|
|
| <body onload="setup()">
|
| -
|
| +
|
| <video controls" ></video>
|
|
|
| <p>
|
|
|