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

Unified Diff: third_party/WebKit/LayoutTests/media/unsupported-rtsp.html

Issue 2062673002: Convert unsupported* and video-append* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/unsupported-rtsp-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/unsupported-rtsp.html
diff --git a/third_party/WebKit/LayoutTests/media/unsupported-rtsp.html b/third_party/WebKit/LayoutTests/media/unsupported-rtsp.html
index f83f9ddfbcd246b05b06b81a177add473c37a191..31461e2dfad36380ac891daf40eab24f30725671 100644
--- a/third_party/WebKit/LayoutTests/media/unsupported-rtsp.html
+++ b/third_party/WebKit/LayoutTests/media/unsupported-rtsp.html
@@ -1,17 +1,15 @@
-
-<video controls></video>
-
-<p>Test that QuickTime file with RTSP URL generates a load error.<p>
-
-<!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
- (Please avoid writing new tests using video-test.js) -->
-<script src=video-test.js></script>
+<!DOCTYPE html>
+<title>Test that QuickTime file with RTSP URL generates a load error.</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<video></video>
<script>
+async_test(function(t) {
+ var video = document.querySelector("video");
video.src = "rtsp://a2047.v1411b.c1411.g.vq.akamaistream.net/5/2047/1411/2_h264_650/1a1a1ae454c430950065de4cbb2f94c226950c7ae655b61a48a91475e243acda3dac194879adde0f/wwdc_2006_2_650.mov";
fs 2016/06/12 14:04:31 This is... interesting. I guess it could be any l
- waitForEvent("error", function () {
- testExpected("video.error", null, "!=");
- testExpected("video.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED);
- testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE);
- endTest();
+ video.onerror = t.step_func_done(function () {
+ assert_equals(video.error.code, MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED);
+ assert_equals(video.networkState, HTMLMediaElement.NETWORK_NO_SOURCE);
});
-</script>
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/unsupported-rtsp-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698