Override expected-failure...

Override expected-failure mac-leopard/media/media-blocked-by-beforeload-expected.txt with copy of expected-success expectation, for chromium-mac-leopard.
https://bugs.webkit.org/show_bug.cgi?id=78030

Unreviewed.

Patch by Ami Fischman <fischman@chromium.org> on 2012-02-07

* platform/chromium-mac-leopard/media/media-blocked-by-beforeload-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bdf0adba
2012-02-07 Ami Fischman <fischman@chromium.org>
Override expected-failure mac-leopard/media/media-blocked-by-beforeload-expected.txt with copy of expected-success expectation, for chromium-mac-leopard.
https://bugs.webkit.org/show_bug.cgi?id=78030
Unreviewed.
* platform/chromium-mac-leopard/media/media-blocked-by-beforeload-expected.txt: Added.
2012-02-07 Dan Bernstein <mitz@apple.com>
<rdar://problem/10475450> Synthetic bold is illegible under some scaling transforms
Test to ensure that a media file blocked by a beforeload handler generates an error and does not block the document's 'load' event.
*** Test initial state ***
EXPECTED (video.networkState == '0') OK
EXPECTED (video.error == 'null') OK
*** Test blocking the 'src' attribute ***
EVENT('beforeload')
EXPECTED (event.target.tagName == 'VIDEO') OK
blocking load of 'src'
EVENT('loadstart')
EVENT('error')
EXPECTED (event.target.tagName == 'VIDEO') OK
EXPECTED (video.error != 'null') OK
EXPECTED (video.error.code == '4') OK
EXPECTED (video.networkState == '3') OK
*** Test using the <source> element ***
EVENT('beforeload')
EXPECTED (event.target.tagName == 'VIDEO') OK
blocking load of first <source> element
EVENT('beforeload')
EXPECTED (event.target.tagName == 'VIDEO') OK
allowing load of second <source> element
EVENT('loadstart')
EVENT('error')
EXPECTED (event.target.tagName == 'SOURCE') OK
EXPECTED (video.error == 'null') OK
EVENT('loadedmetadata')
END OF TEST
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