Commit 48e7a8ae authored by tony@chromium.org's avatar tony@chromium.org

Rebaseline media tests after http://trac.webkit.org/changeset/50063 .

The load event was changed to canplaythrough.

Review URL: http://codereview.chromium.org/345004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30294 0039d316-1c4b-4281-b951-d872f2087c98
parent 3a9a77c3
Test that Audio() sets 'autobuffer' attribute.
RUN(mediaElement = new Audio())
++ Test initial attribute value
EXPECTED (mediaElement.getAttribute('autobuffer') != 'null') OK
EXPECTED (mediaElement.autobuffer == 'true') OK
RUN(mediaElement.src = 'content/test.oga')
RUN(mediaElement.load())
++ Test after 'load' event
EXPECTED (mediaElement.getAttribute('autobuffer') != 'null') OK
EXPECTED (mediaElement.autobuffer == 'true') OK
END OF TEST
Test to ensure we don't taint a canvas when drawing from a video the uses source elements rather than the src attribute
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS !!ctx.getImageData(0, 0, width, height) is true
RUN(var source = document.createElement('source'); source.src = 'content/counting.ogv'; video.appendChild(source))
EVENT(load)
END OF TEST
EXPECTED (video.seekable.length == '0') OK
TEST(video.seekable.start(-1)) THROWS(DOMException.INDEX_SIZE_ERR) OK
TEST(video.seekable.end(-1)) THROWS(DOMException.INDEX_SIZE_ERR) OK
TEST(video.seekable.start(0)) THROWS(DOMException.INDEX_SIZE_ERR) OK
TEST(video.seekable.end(0)) THROWS(DOMException.INDEX_SIZE_ERR) OK
EVENT(load)
EXPECTED (video.seekable.length == '1') OK
EXPECTED (video.seekable.start(0) == '0') OK
EXPECTED (video.seekable.end(0) > '0') OK
TEST(video.seekable.start(-1)) THROWS(DOMException.INDEX_SIZE_ERR) OK
TEST(video.seekable.end(-1)) THROWS(DOMException.INDEX_SIZE_ERR) OK
TEST(video.seekable.start(1)) THROWS(DOMException.INDEX_SIZE_ERR) OK
TEST(video.seekable.end(1)) THROWS(DOMException.INDEX_SIZE_ERR) OK
END OF TEST
......@@ -9,7 +9,7 @@ EXPECTED (mediaElement.autobuffer == 'true') OK
RUN(mediaElement.src = 'content/test.oga')
RUN(mediaElement.load())
++ Test after 'load' event
++ Test after 'canplaythrough' event
EXPECTED (mediaElement.getAttribute('autobuffer') != 'null') OK
EXPECTED (mediaElement.autobuffer == 'true') OK
END OF TEST
......@@ -4,6 +4,5 @@ EXPECTED (audio instanceof HTMLAudioElement == 'true') OK
RUN(audio.load())
EVENT(loadstart)
EXPECTED (relativeURL(audio.currentSrc) == 'content/test.oga') OK
EVENT(load)
EVENT(canplaythrough)
END OF TEST
EXPECTED (video.currentSrc == '') OK
EXPECTED (video.currentSrc == '') OK
EVENT(load)
EVENT(canplaythrough)
EXPECTED (relativeURL(video.currentSrc) == 'content/test.ogv') OK
END OF TEST
......@@ -6,5 +6,5 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS !!ctx.getImageData(0, 0, width, height) is true
RUN(var source = document.createElement('source'); source.src = 'content/counting.ogv'; video.appendChild(source))
EVENT(load)
EVENT(canplaythrough)
END OF TEST
EXPECTED (video.currentSrc == '') OK
EXPECTED (video.currentSrc == '') OK
EVENT(load)
EVENT(canplaythrough)
EXPECTED (relativeURL(video.currentSrc) == 'content/test.ogv') OK
END OF TEST
EXPECTED (video.error == 'null') OK
EVENT(loadstart)
EVENT(abort)
EXPECTED (video.error.code == '1') OK
EVENT(loadstart)
EVENT(load)
EXPECTED (video.error == 'null') OK
END OF TEST
......@@ -3,7 +3,7 @@ Test that seeking paused video past it's duration time sets currentTime to durat
RUN(video.src = 'content/test.ogv')
RUN(video.load())
EVENT(load)
EVENT(canplaythrough)
EXPECTED (video.paused == 'true') OK
EXPECTED (video.ended == 'false') OK
RUN(video.play())
......@@ -15,4 +15,3 @@ EXPECTED (mediaElement.currentTime == 'mediaElement.duration') OK
EXPECTED (video.ended == 'true') OK
END OF TEST
1. Test that an invalid src attribute fires an error when the file fails to load.
2. Test that changing src attribute triggers load after a load fails.
3. Test that changing src does not trigger load once a file is loaded.
3. Test that changing src does not trigger load once a file is known to be valid.
EVENT(error)
......@@ -17,4 +17,3 @@ EXPECTED (isNaN(video.duration) == 'false') OK
RUN(video.setAttribute('src', 'content/silence.mpg'))
END OF TEST
......@@ -9,7 +9,7 @@ EXPECTED (mediaElement.autobuffer == 'true') OK
RUN(mediaElement.src = 'content/test.oga')
RUN(mediaElement.load())
++ Test after 'load' event
++ Test after 'canplaythrough' event
EXPECTED (mediaElement.getAttribute('autobuffer') != 'null') OK
EXPECTED (mediaElement.autobuffer == 'true') OK
END OF TEST
......@@ -4,6 +4,5 @@ EXPECTED (audio instanceof HTMLAudioElement == 'true') OK
RUN(audio.load())
EVENT(loadstart)
EXPECTED (relativeURL(audio.currentSrc) == 'content/test.oga') OK
EVENT(load)
EVENT(canplaythrough)
END OF TEST
EXPECTED (video.currentSrc == '') OK
EXPECTED (video.currentSrc == '') OK
EVENT(load)
EVENT(canplaythrough)
EXPECTED (relativeURL(video.currentSrc) == 'content/test.ogv') OK
END OF TEST
......@@ -6,5 +6,5 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS !!ctx.getImageData(0, 0, width, height) is true
RUN(var source = document.createElement('source'); source.src = 'content/counting.ogv'; video.appendChild(source))
EVENT(load)
EVENT(canplaythrough)
END OF TEST
Test 'controls' attribute
EXPECTED (video.controls != 'null') OK
EVENT(load)
EXPECTED (video.controls != 'null') OK
RUN(video.removeAttribute('controls'))
EXPECTED (video.controls == 'false') OK
RUN(video.controls = true)
EXPECTED (video.getAttribute('controls') == 'controls') OK
RUN(video.controls = false)
EXPECTED (video.controls == 'false') OK
RUN(video.setAttribute('controls','controls'))
EXPECTED (video.controls != 'null') OK
END OF TEST
EXPECTED (video.currentSrc == '') OK
EXPECTED (video.currentSrc == '') OK
EVENT(load)
EVENT(canplaythrough)
EXPECTED (relativeURL(video.currentSrc) == 'content/test.ogv') OK
END OF TEST
......@@ -3,7 +3,7 @@ Test that seeking paused video past it's duration time sets currentTime to durat
RUN(video.src = 'content/test.ogv')
RUN(video.load())
EVENT(load)
EVENT(canplaythrough)
EXPECTED (video.paused == 'true') OK
EXPECTED (video.ended == 'false') OK
RUN(video.play())
......@@ -15,4 +15,3 @@ EXPECTED (mediaElement.currentTime == 'mediaElement.duration') OK
EXPECTED (video.ended == 'true') OK
END OF TEST
1. Test that an invalid src attribute fires an error when the file fails to load.
2. Test that changing src attribute triggers load after a load fails.
3. Test that changing src does not trigger load once a file is loaded.
3. Test that changing src does not trigger load once a file is known to be valid.
EVENT(error)
......@@ -17,4 +17,3 @@ EXPECTED (isNaN(video.duration) == 'false') OK
RUN(video.setAttribute('src', 'content/silence.mpg'))
END OF TEST
......@@ -3218,27 +3218,12 @@ BUG_TONY LINUX DEBUG : LayoutTests/media/controls-drag-timebar.html = CRASH FAIL
// WebKit roll 49992:49997
// hclam to add expected results.
BUG_HCLAM SKIP : LayoutTests/media/video-volume-slider.html = FAIL
// scherkus to add expected results.
BUG_SCHERKUS : LayoutTests/media/video-pause-immediately.html = FAIL
// New flaky crashing tests
BUG25747 WIN : LayoutTests/fast/xmlhttprequest/xmlhttprequest-invalid-values.html = CRASH PASS
BUG25747 MAC : LayoutTests/fast/forms/tabbing-input-iframe.html = CRASH PASS
BUG25747 LINUX : LayoutTests/fast/overflow/scroll-vertical-not-horizontal.html = CRASH PASS
// WebKit roll 50027:50073
// HTML5 media element 'load' removed: http://trac.webkit.org/changeset/50063
BUG_TONY : LayoutTests/media/audio-constructor-autobuffer.html = FAIL
BUG_TONY : LayoutTests/media/audio-constructor.html = FAIL
BUG_TONY : LayoutTests/media/video-append-source.html = FAIL
BUG_TONY : LayoutTests/media/video-canvas-source.html = FAIL
BUG_TONY : LayoutTests/media/video-controls.html = FAIL
BUG_TONY : LayoutTests/media/video-dom-src.html = FAIL
BUG_TONY : LayoutTests/media/video-seek-past-end-paused.html = FAIL
BUG_TONY : LayoutTests/media/video-src-change.html = FAIL
BUG_TONY LINUX : LayoutTests/media/video-seekable.html = FAIL
BUG_TONY MAC : LayoutTests/media/video-error-abort.html = FAIL
// WebKit roll 50073:50101
// jorlow to add expected results.
BUG_JORLOW : LayoutTests/storage/domstorage/documentURI.html = FAIL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment