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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-load-networkState-expected.txt

Issue 2077413002: Convert video-duration*, video-error* and video-load* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 Test that setting src to an invalid url triggers load(), which sets networkState to NETWORK_NO_SOURCE. Setting src to a valid url should then trigger the loadin g events and end up with networkState >= NETWORK_LOADING.
2
3
4 EXPECTED (video.networkState == '0') OK
5 RUN(video.src = 'bogus/movie.mpg')
6 EVENT(loadstart)
7 EXPECTED (video.networkState == '3') OK
8
9 EVENT(loadstart)
10 EVENT(loadedmetadata)
11 EVENT(loadeddata)
12 EVENT(canplay)
13 EVENT(canplaythrough)
14 EXPECTED (video.networkState >= '1') OK
15 END OF TEST
16
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698