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

Side by Side Diff: LayoutTests/media/media-blocked-by-beforeload-expected.txt

Issue 205523003: Remove beforeload events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove more tests Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 Test to ensure that a media file blocked by a beforeload handler generates an er ror and does not block the document's 'load' event.
2
3 *** Test initial state ***
4 EXPECTED (video.networkState == '0') OK
5 EXPECTED (video.error == 'null') OK
6
7 *** Test blocking the 'src' attribute ***
8
9 EVENT('beforeload')
10 EXPECTED (event.target.tagName == 'VIDEO') OK
11 blocking load of 'src'
12
13 EVENT('loadstart')
14
15 EVENT('error')
16 EXPECTED (event.target.tagName == 'VIDEO') OK
17 EXPECTED (video.error != 'null') OK
18 EXPECTED (video.error.code == '4') OK
19 EXPECTED (video.networkState == '3') OK
20
21 *** Test using the <source> element ***
22
23 EVENT('beforeload')
24 EXPECTED (event.target.tagName == 'VIDEO') OK
25 blocking load of first <source> element
26
27 EVENT('beforeload')
28 EXPECTED (event.target.tagName == 'VIDEO') OK
29 allowing load of second <source> element
30
31 EVENT('loadstart')
32
33 EVENT('error')
34 EXPECTED (event.target.tagName == 'SOURCE') OK
35 EXPECTED (video.error == 'null') OK
36
37 EVENT('loadedmetadata')
38
39 END OF TEST
40
OLDNEW
« no previous file with comments | « LayoutTests/media/media-blocked-by-beforeload.html ('k') | LayoutTests/media/video-beforeload-remove-source.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698