2009-04-28 Pierre d'Herbemont <pdherbemont@apple.com>

        Reviewed by Simon Fraser.

        <rdar://problem/6834830>

        Make sure we cover the two possible values reported by event.total that are playback engine
        specific.

        * media/progress-event-total-expected.txt: Match the new test.
        * media/progress-event-total.html: Test the two values.



git-svn-id: svn://svn.chromium.org/blink/trunk@42975 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 91ebab1f
...@@ -5,6 +5,6 @@ EXPECTED (event.loaded == '0') OK ...@@ -5,6 +5,6 @@ EXPECTED (event.loaded == '0') OK
EVENT(load) EVENT(load)
EXPECTED (event.lengthComputable == 'true') OK EXPECTED (event.lengthComputable == 'true') OK
EXPECTED (event.loaded > '0') OK EXPECTED (event.loaded > '0') OK
EXPECTED (event.total == '188483') OK SUCCESS: event.total is 188483 or 192844 (Playback engine specific)
END OF TEST END OF TEST
...@@ -18,7 +18,11 @@ ...@@ -18,7 +18,11 @@
testExpected("event.lengthComputable", true); testExpected("event.lengthComputable", true);
testExpected("event.loaded", 0, '>'); testExpected("event.loaded", 0, '>');
testExpected("event.total", 188483); var allowedTotalBytes = [188483, 192844];
if (event.total == allowedTotalBytes[0] || event.total == allowedTotalBytes[1])
consoleWrite("SUCCESS: event.total is " + allowedTotalBytes[0] + " or " + allowedTotalBytes[1] + " (Playback engine specific)");
else
consoleWrite("FAIL: event.total should not be " + event.total + " (should be " + allowedTotalBytes[0] + " or " + allowedTotalBytes[1] + ")");
endTest(); endTest();
} }
......
2009-04-28 Pierre d'Herbemont <pdherbemont@apple.com>
Reviewed by Simon Fraser.
<rdar://problem/6834830>
Make sure we cover the two possible values reported by event.total that are playback engine
specific.
* media/progress-event-total-expected.txt: Match the new test.
* media/progress-event-total.html: Test the two values.
2009-04-28 Timothy Hatcher <timothy@apple.com> 2009-04-28 Timothy Hatcher <timothy@apple.com>
Rename -[DOMRange lineBoxRects] to -[DOMRange textRects] and change how it Rename -[DOMRange lineBoxRects] to -[DOMRange textRects] and change how it
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment