Index: third_party/WebKit/LayoutTests/media/remove-from-document.html |
diff --git a/third_party/WebKit/LayoutTests/media/remove-from-document.html b/third_party/WebKit/LayoutTests/media/remove-from-document.html |
index d95f6aa30500472abab69a02712895495bdad315..f827e80b8470b6d2c2f70a61631ab40c58008a90 100644 |
--- a/third_party/WebKit/LayoutTests/media/remove-from-document.html |
+++ b/third_party/WebKit/LayoutTests/media/remove-from-document.html |
@@ -2,6 +2,8 @@ |
<html> |
<head> |
<script src=media-file.js></script> |
+ <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
+ (Please avoid writing new tests using video-test.js) --> |
<script src=video-test.js></script> |
<script type="text/javascript" charset="utf-8"> |
function doSetup() |
@@ -10,17 +12,17 @@ |
video.src = findMediaFile("video", "content/test"); |
} |
- function doTest () |
+ function doTest () |
{ |
consoleWrite("EVENT(canplaythrough)"); |
testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY, "!="); |
testExpected("video.paused", false); |
- |
+ |
run("document.body.removeChild(video)"); |
- |
+ |
testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY, "!="); |
testExpected("video.paused", true); |
- |
+ |
document.body.offsetTop; |
endTest(); |
} |