Bug 1276830 - part3 : modify tests. r=rillian
authorAlastor Wu <alwu@mozilla.com>
Mon, 06 Jun 2016 10:12:42 +0800
changeset 341594 925a96e53262fabe127d2a6405f98438d18cff6b
parent 341593 03958a72e882feb4660900def152b60543ca2fe9
child 341595 57bdeb9f1eca2a87dba18150e93129dcc1f8d4e9
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrillian
bugs1276830
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1276830 - part3 : modify tests. r=rillian MozReview-Commit-ID: 9imko6c1Z4R
dom/media/test/test_texttrackcue.html
--- a/dom/media/test/test_texttrackcue.html
+++ b/dom/media/test/test_texttrackcue.html
@@ -123,43 +123,23 @@ SpecialPowers.pushPrefEnv({"set": [["med
           if (typeof val === "string") {
             cue[prop] = val.toUpperCase();
             is(cue[prop], val, "Cue's " + prop + " should be " + val);
           }
         });
       }
 
       checkEnumValue("align", "middle", [ "start", "left", "middle", "right", "end" ]);
+      checkEnumValue("lineAlign", "start", [ "start", "center", "end" ]);
       checkEnumValue("vertical", "", [ "", "lr", "rl" ]);
 
-      // Check that cue line align works properly
-      is(cue.lineAlign, "start", "Cue's default line alignment should be start.");
-
-      exceptionHappened = false;
-      try {
-        cue.lineAlign = "left";
-      } catch(e) {
-        exceptionHappened = true;
-        is(e.name, "SyntaxError", "Should have thrown SyntaxError.");
-      }
-      ok(exceptionHappened, "Exception should have happened.");
-
-      exceptionHappened = false;
-      try {
-        cue.lineAlign = "right";
-      } catch(e) {
-        exceptionHappened = true;
-        is(e.name, "SyntaxError", "Should have thrown SyntaxError.");
-      }
-      ok(exceptionHappened, "Exception should have happened.");
-
-      cue.lineAlign = "middle";
-      is(cue.lineAlign, "middle", "Cue's line align should be middle.");
+      cue.lineAlign = "center";
+      is(cue.lineAlign, "center", "Cue's line align should be center.");
       cue.lineAlign = "START";
-      is(cue.lineAlign, "middle", "Cue's line align should be middle.");
+      is(cue.lineAlign, "center", "Cue's line align should be center.");
       cue.lineAlign = "end";
       is(cue.lineAlign, "end", "Cue's line align should be end.");
 
       // Check that cue position align works properly
       is(cue.positionAlign, "center", "Cue's default position alignment should be center.");
 
       cue.positionAlign = "line-left";
       is(cue.positionAlign, "line-left", "Cue's position align should be line-left.");