Bug 1269250 - Fix line endings in test_gmp_playback.html - r=jya
authorGerald Squelart <gsquelart@mozilla.com>
Mon, 02 May 2016 14:04:42 +1000
changeset 295706 bf82810f72802f6fadbffe23e2f21eb2ddc5a417
parent 295705 1d99e6c5a2bf41b983658369b97c5d152649695b
child 295707 77cead2cd20300623eea2416bc9bce4d5021df09
child 295781 e0086d2ba0d13c47616b5f5c403aee40319f321a
push id19015
push usercbook@mozilla.com
push dateMon, 02 May 2016 09:39:23 +0000
treeherderfx-team@2080375bc69d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1269250
milestone49.0a1
Bug 1269250 - Fix line endings in test_gmp_playback.html - r=jya MozReview-Commit-ID: AR43LFOYvqu
dom/media/test/test_gmp_playback.html
--- a/dom/media/test/test_gmp_playback.html
+++ b/dom/media/test/test_gmp_playback.html
@@ -1,40 +1,40 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <title>Test playback of media files that should play OK</title>
-  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
-  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
-  <script type="text/javascript" src="manifest.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<pre id="test">
-<script class="testbody" type="text/javascript">
-
-SimpleTest.waitForExplicitFinish();
-
-function startTest() {
-  var v = document.createElement("video");
-  ok(v.canPlayType('video/mp4; codecs="avc1.64000d,mp4a.40.2"') != "",
-     "Should be able to play MP4/H.264/AAC via <video> using GMP");
-  v.src = "short.mp4";
-  v.addEventListener("ended", function(event) {
-    ok(true, "Reached end");
-    SimpleTest.finish();
-  });
-  document.body.appendChild(v);
-  v.play();
-}
-
-var testPrefs = [
-  ['media.gmp.decoder.aac', 1],  // gmp-clearkey
-  ['media.gmp.decoder.h264', 1], // gmp-clearkey
-  ['media.gmp.decoder.enabled', true]
-];
-
-SpecialPowers.pushPrefEnv({'set': testPrefs}, startTest);
-
-</script>
-</pre>
-</body>
-</html>
+<!DOCTYPE HTML>
+<html>
+<head>
+  <title>Test playback of media files that should play OK</title>
+  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+  <script type="text/javascript" src="manifest.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<pre id="test">
+<script class="testbody" type="text/javascript">
+
+SimpleTest.waitForExplicitFinish();
+
+function startTest() {
+  var v = document.createElement("video");
+  ok(v.canPlayType('video/mp4; codecs="avc1.64000d,mp4a.40.2"') != "",
+     "Should be able to play MP4/H.264/AAC via <video> using GMP");
+  v.src = "short.mp4";
+  v.addEventListener("ended", function(event) {
+    ok(true, "Reached end");
+    SimpleTest.finish();
+  });
+  document.body.appendChild(v);
+  v.play();
+}
+
+var testPrefs = [
+  ['media.gmp.decoder.aac', 1],  // gmp-clearkey
+  ['media.gmp.decoder.h264', 1], // gmp-clearkey
+  ['media.gmp.decoder.enabled', true]
+];
+
+SpecialPowers.pushPrefEnv({'set': testPrefs}, startTest);
+
+</script>
+</pre>
+</body>
+</html>