☠☠ backed out by 803228efe108 ☠ ☠ | |
author | Alastor Wu <alwu@mozilla.com> |
Tue, 14 Jun 2016 11:59:16 +0100 | |
changeset 301726 | 7373932c9e5638f5456d88599d8c8548f254c401 |
parent 301725 | 568a08748f673064b01377cfe75785990c84aafa |
child 301727 | 79323e71de55371e66aff9a04adb3eff1235c26d |
push id | 78426 |
push user | alwu@mozilla.com |
push date | Tue, 14 Jun 2016 11:02:53 +0000 |
treeherder | mozilla-inbound@79323e71de55 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | rillian |
bugs | 1276831 |
milestone | 50.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
|
--- a/dom/media/test/test_texttrackcue.html +++ b/dom/media/test/test_texttrackcue.html @@ -87,34 +87,37 @@ SpecialPowers.pushPrefEnv({"set": [["med video.removeEventListener("pause", pauseOnExit, false); video.play(); }); var exceptionHappened; function checkPercentageValue(prop, initialVal) { ok(prop in cue, prop + " should be a property on VTTCue."); cue[prop] = initialVal; - is(cue[prop], initialVal, "Cue's " + prop + " should now be " + initialVal); + is(cue[prop], initialVal, "Cue's " + prop + " should initially be " + initialVal); [ 101, -1 ].forEach(function(val) { exceptionHappened = false; try { cue[prop] = val; } catch(e) { exceptionHappened = true; is(e.name, "IndexSizeError", "Should have thrown IndexSizeError."); } ok(exceptionHappened, "Exception should have happened."); }); } checkPercentageValue("size", 100.0); cue.size = 50.5; is(cue.size, 50.5, "Cue's size should be 50.5.") - checkPercentageValue("position", 50.0); + // Check cue.position + checkPercentageValue("position", "auto"); + cue.position = 50.5; + is(cue.position, 50.5, "Cue's position value should now be 50.5."); ok(cue.snapToLines, "Cue's snapToLines should be set by set."); cue.snapToLines = false; ok(!cue.snapToLines, "Cue's snapToLines should not be set."); function checkEnumValue(prop, initialVal, acceptedValues) { ok(prop in cue, prop + " should be a property on VTTCue."); is(cue[prop], initialVal, "Cue's " + prop + " should be " + initialVal);