Bug 596453 - Fix typo in test_error_on_404.
authorMatthew Gregan <kinetik@flim.org>
Fri, 24 Aug 2012 11:51:37 +1200
changeset 105289 90e517924f06a56e4bcea68cc01c38228dfc639a
parent 105288 e137f28dfe7043a5ab7531fd2989c610092826a1
child 105290 346289a882b84ac4ae871e24aeb06b11241d31da
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
bugs596453
milestone17.0a1
Bug 596453 - Fix typo in test_error_on_404.
content/media/test/test_error_on_404.html
--- a/content/media/test/test_error_on_404.html
+++ b/content/media/test/test_error_on_404.html
@@ -8,25 +8,20 @@ https://bugzilla.mozilla.org/show_bug.cg
   <script type="application/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>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=476731">Mozilla Bug </a>
 <p id="display"></p>
 <div id="content" style="display: none">
-  
 </div>
 <pre id="test">
-
-
-
 <script type="application/javascript">
-
-/** Test for Bug  **/
+/** Test for Bug 476731 **/
 
 var videos = [];
 
 function FinishedLoads() {
   if (videos.length == 0)
     return false;
   for (var i=0; i<videos.length; ++i) {
     if (videos[i]._loadedData) {
@@ -67,25 +62,22 @@ for (var i=0; i<g404Tests.length; ++i) {
     continue;
    }
    v.src = test.name;
    v._loadedData = false;
    v._loadStart = false;
    v._loadError = false;
    v.addEventListener("error", loadError, false);
    v.addEventListener("loadstart", loadStart, false);
-   v.addEventListener("loadedddata", loadedData, false);
+   v.addEventListener("loadeddata", loadedData, false);
    document.body.appendChild(v); // Will start load.
    videos.push(v);
 }
 
-
 if (videos.length == 0) {
   todo(false, "No types supported");
 } else {
   SimpleTest.waitForExplicitFinish();
 }
-
 </script>
 </pre>
-
 </body>
 </html>