Changeset 220912 in webkit


Ignore:
Timestamp:
Aug 18, 2017 2:24:35 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Update track-datacue.html test to the current code.
https://bugs.webkit.org/show_bug.cgi?id=175624

Patch by Ms2ger <Ms2ger@igalia.com> on 2017-08-18
Reviewed by Eric Carlson.

  • media/track/track-datacue-expected.txt: rebaselined.
  • media/track/track-datacue.html: updated for IDL, exception changes, addition of a new constructor.
  • platform/gtk/TestExpectations: removed failure expectation.
  • platform/ios/TestExpectations: enable.
  • platform/mac/TestExpectations: enable.
  • platform/win/TestExpectations: enable.
Location:
trunk/LayoutTests
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r220911 r220912  
     12017-08-18  Ms2ger  <Ms2ger@igalia.com>
     2
     3        Update track-datacue.html test to the current code.
     4        https://bugs.webkit.org/show_bug.cgi?id=175624
     5
     6        Reviewed by Eric Carlson.
     7
     8        * media/track/track-datacue-expected.txt: rebaselined.
     9        * media/track/track-datacue.html: updated for IDL, exception changes, addition of a new constructor.
     10        * platform/gtk/TestExpectations: removed failure expectation.
     11        * platform/ios/TestExpectations: enable.
     12        * platform/mac/TestExpectations: enable.
     13        * platform/win/TestExpectations: enable.
     14
    1152017-08-18  Ms2ger  <Ms2ger@gmail.com>
    216
  • trunk/LayoutTests/media/track/track-datacue-expected.txt

    r177190 r220912  
    33
    44*** Test DataCue's TextTrackCue interface.
    5 EXPECTED (cue instanceof '[object TextTrackCueConstructor]') OK
     5EXPECTED (cue instanceof 'function TextTrackCue() { [native code] }') OK
    66EXPECTED (cue.track == 'null') OK
    77EXPECTED (cue.id == '') OK
     
    1111
    1212*** Test DataCue interface.
    13 EXPECTED (cue instanceof '[object DataCueConstructor]') OK
     13EXPECTED (cue instanceof 'function DataCue() { [native code] }') OK
    1414EXPECTED (new Uint8Array(cue.data).length == '5') OK
    1515EXPECTED (new Uint8Array(cue.data)[0] == '4') OK
     
    3030
    3131*** Throw exception if data is not an ArrayBuffer.
    32 TEST(cue.data = null) THROWS('TypeError: Type error') OK
    33 TEST(cue.data = 'test') THROWS('TypeError: Type error') OK
    34 TEST(cue.data = [5]) THROWS('TypeError: Type error') OK
    35 TEST(badCue = new DataCue(1, 2, null)) THROWS('TypeError: Type error') OK
    36 TEST(badCue = new DataCue(1, 2, 'test')) THROWS('TypeError: Type error') OK
    37 TEST(badCue = new DataCue(1, 2, [5])) THROWS('TypeError: Type error') OK
     32TEST(cue.data = null) THROWS('TypeError: The DataCue.data attribute must be an instance of ArrayBuffer') OK
     33TEST(cue.data = 'test') THROWS('TypeError: The DataCue.data attribute must be an instance of ArrayBuffer') OK
     34TEST(cue.data = [5]) THROWS('TypeError: The DataCue.data attribute must be an instance of ArrayBuffer') OK
     35
     36*** Constructor with value argument.
     37EXPECTED (new DataCue(1, 2, null).value === 'null') OK
     38EXPECTED (new DataCue(1, 2, 'test').value === 'test') OK
     39EXPECTED (new DataCue(1, 2, [5]).value.length == '1') OK
     40EXPECTED (new DataCue(1, 2, [5]).value[0] == '5') OK
    3841
    3942*** Test adding DataCue to track with kind = 'metadata'.
  • trunk/LayoutTests/media/track/track-datacue.html

    r177190 r220912  
    4242
    4343                consoleWrite("<br>*** Throw exception if data is not an ArrayBuffer.");
    44                 var error = "'TypeError: Type error'";
     44                var error = "'TypeError: The DataCue.data attribute must be an instance of ArrayBuffer'";
    4545                testException("cue.data = null", error);
    4646                testException("cue.data = 'test'", error);
    4747                testException("cue.data = [5]", error);
    48                 testException("badCue = new DataCue(1, 2, null)", error);
    49                 testException("badCue = new DataCue(1, 2, 'test')", error);
    50                 testException("badCue = new DataCue(1, 2, [5])", error);
     48
     49                consoleWrite("<br>*** Constructor with value argument.");
     50                testExpected("new DataCue(1, 2, null).value", null, "===");
     51                testExpected("new DataCue(1, 2, 'test').value", 'test', "===");
     52                testArraysEqual("new DataCue(1, 2, [5]).value", [5]);
    5153
    5254                consoleWrite("<br>*** Test adding DataCue to track with kind = 'metadata'.");
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r220911 r220912  
    32463246webkit.org/b/168373 media/video-background-playback.html [ Failure Timeout ]
    32473247webkit.org/b/168373 media/video-concurrent-playback.html [ Failure Timeout ]
    3248 webkit.org/b/132055 media/track/track-datacue.html [ Failure ]
    32493248
    32503249# [GTK] Some reftest fail with only one or two pixel differences in diff image
  • trunk/LayoutTests/platform/ios/TestExpectations

    r220782 r220912  
    159159platform/ios/ios/fast/text/data-detectors/phone.html [ Skip ]
    160160platform/ios/ios/touch [ Skip ]
    161 
    162 # WebKitDataCue is supported, not DataCue
    163 media/track/track-datacue.html
    164161
    165162# Codecs not supported
  • trunk/LayoutTests/platform/mac/TestExpectations

    r220892 r220912  
    800800## --- Start unimplemented media tests ---
    801801webkit.org/b/91611 media/media-higher-prio-audio-stream.html [ Skip ]
    802 
    803 # WebKitDataCue is supported, not DataCue
    804 media/track/track-datacue.html [ Skip ]
    805802
    806803webkit.org/b/158836 imported/w3c/web-platform-tests/encrypted-media [ Skip ]
  • trunk/LayoutTests/platform/win/TestExpectations

    r220782 r220912  
    10501050media/track/track-cues-seeking.html [ Skip ] # Timeout
    10511051media/track/track-cues-sorted-before-dispatch.html [ Skip ] # Timeout
    1052 media/track/track-datacue.html [ Skip ] # Timeout
    10531052media/track/track-forced-subtitles-in-band.html [ Skip ] # Timeout
    10541053media/track/track-in-band-style.html [ Skip ] # Timeout
Note: See TracChangeset for help on using the changeset viewer.