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

Unified Diff: third_party/WebKit/LayoutTests/media/video-source-removed.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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
Index: third_party/WebKit/LayoutTests/media/video-source-removed.html
diff --git a/third_party/WebKit/LayoutTests/media/video-source-removed.html b/third_party/WebKit/LayoutTests/media/video-source-removed.html
index 2133697e26244b65cb6ca011ac1166945b1deace..339d405c12d6850e6ba67e316bf32896527feea3 100644
--- a/third_party/WebKit/LayoutTests/media/video-source-removed.html
+++ b/third_party/WebKit/LayoutTests/media/video-source-removed.html
@@ -2,11 +2,13 @@
<html>
<head>
<title>crash after removing &lt;source&gt; test</title>
+ <!-- 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 src=media-file.js></script>
<script>
- var testInfo =
+ var testInfo =
{
current : -1,
tests : [removeChild, innerHTML, replaceChild]
@@ -16,7 +18,7 @@
{
consoleWrite("Removing all &lt;source&gt; elements with <i>removeChild()<" + "/i>");
for (var ndx = 0; ndx < sources.length; ++ndx) {
- consoleWrite(" -> removeChild(" + ndx + ")");
+ consoleWrite(" -> removeChild(" + ndx + ")");
video.removeChild(sources[ndx]);
}
}
@@ -24,7 +26,7 @@
function innerHTML()
{
consoleWrite("Removing all &lt;source&gt; by setting <i>.innerHTML<" + "/i>");
- consoleWrite(" -> video.innerHTML = ''");
+ consoleWrite(" -> video.innerHTML = ''");
}
function replaceChild(sources)
@@ -33,7 +35,7 @@
var span = document.createElement("span")
span.appendChild(document.createTextNode("Yo"));
for (var ndx = 0; ndx < sources.length; ++ndx) {
- consoleWrite(" -> replaceChild(" + ndx + ")");
+ consoleWrite(" -> replaceChild(" + ndx + ")");
video.replaceChild(span, sources[ndx]);
}
}
@@ -51,7 +53,7 @@
source.type = mimeTypeForExtension(source.src.split('.').pop());
video.appendChild(source);
}
-
+
function runNextTest()
{
consoleWrite("");
@@ -65,8 +67,8 @@
document.body.appendChild(video);
video.addEventListener("loadstart", runOneTest);
- // Add a bunch of source elements with bogus urls because we want to remove elements
- // after the media engine begins processing sources, and we can't predict the delay
+ // Add a bunch of source elements with bogus urls because we want to remove elements
+ // after the media engine begins processing sources, and we can't predict the delay
// between when the media element fires an 'error' event and our handler is called,
// but we need to guarantee that there are <source> elements that haven't been processed
// when we run the test.

Powered by Google App Engine
This is Rietveld 408576698