Bug 1332954 - Correct spelling of HTMLMediaElement.error.message in test_decode_error.html. r?jya draft
authorChris Pearce <cpearce@mozilla.com>
Mon, 23 Jan 2017 11:07:27 +1300
changeset 464801 6a93afc3bc6fbd78a99e82f96047f19bfa85d354
parent 464800 bd0cd9af94d9334b862d9891013fed56fb9b3b7c
child 542996 e6f21cef3979946c687f65964b249792420d7b10
push id42436
push usercpearce@mozilla.com
push dateSun, 22 Jan 2017 22:08:07 +0000
reviewersjya
bugs1332954
milestone53.0a1
Bug 1332954 - Correct spelling of HTMLMediaElement.error.message in test_decode_error.html. r?jya MozReview-Commit-ID: 9DzLWTO8RP4
dom/media/test/test_decode_error.html
--- a/dom/media/test/test_decode_error.html
+++ b/dom/media/test/test_decode_error.html
@@ -26,17 +26,17 @@ function startTest(test, token) {
     is(event.type, "error", "Expected event of type 'error'");
     ok(el.error, "Element 'error' attr expected to have a value");
     ok(el.error instanceof MediaError, "Element 'error' attr expected to be MediaError");
     if (v.readyState == v.HAVE_NOTHING) {
       is(el.error.code, MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED, "Expected media not supported error");
     } else {
       is(el.error.code, MediaError.MEDIA_ERR_DECODE, "Expected a decode error");
     }
-    ok(typeof el.error.message === 'string' || el.error.essage instanceof String, "Element 'message' attr expected to be a string");
+    ok(typeof el.error.message === 'string' || el.error.message instanceof String, "Element 'message' attr expected to be a string");
     ok(el.error.message.length > 0, "Element 'message' attr has content");
     el._sawError = true;
     manager.finished(token);
   });
 
   v.addEventListener("loadeddata", function () {
     ok(false, "Unexpected loadeddata event");
     manager.finished(token);