Changeset 220985 in webkit
- Timestamp:
- Aug 21, 2017 3:17:24 PM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r220983 r220985 1 2017-08-21 Ms2ger <Ms2ger@gmail.com> 2 3 Stop media/video-controls-toggling.html from timing out. 4 https://bugs.webkit.org/show_bug.cgi?id=116266 5 6 Reviewed by Dean Jackson. 7 8 Use getComputedStyle to check the display property. Element::style only 9 contains properties set in the style attribute, but the display property 10 is set through CSS using the 'hidden' class. 11 12 * media/video-controls-toggling-expected.txt: 13 * media/video-controls-toggling.html: 14 * platform/gtk/TestExpectations: 15 * platform/gtk/media/video-controls-toggling-expected.txt: 16 Copied from LayoutTests/media/video-controls-toggling-expected.txt. 17 I'm not sure where the console message comes from, but it seems to 18 be in the GTK-specific code. 19 1 20 2017-08-21 Dean Jackson <dino@apple.com> 2 21 -
trunk/LayoutTests/media/video-controls-toggling-expected.txt
r158837 r220985 1 Tests that showing / hiding video controls uses the sets thedisplay:none property1 Tests that showing / hiding video controls uses the display:none property 2 2 3 3 … … 9 9 10 10 ** Test that controls are shown when controls attribute is present ** 11 EXPECTED ( panel.style['display']!= 'none') OK11 EXPECTED (getComputedStyle(panel).display != 'none') OK 12 12 13 13 ** Move mouse outside the video ** … … 15 15 16 16 ** The controls should have the display property set to none 17 EXPECTED ( panel.style['display']== 'none') OK17 EXPECTED (getComputedStyle(panel).display == 'none') OK 18 18 19 19 ** Remove controls attribute** … … 24 24 25 25 ** Video controls should not be shown ** 26 EXPECTED ( panel.style['display']== 'none') OK26 EXPECTED (getComputedStyle(panel).display == 'none') OK 27 27 28 28 END OF TEST -
trunk/LayoutTests/media/video-controls-toggling.html
r210959 r220985 41 41 consoleWrite(""); 42 42 consoleWrite("** Test that controls are shown when controls attribute is present **"); 43 testExpected(" panel.style['display']", 'none', "!=");43 testExpected("getComputedStyle(panel).display", 'none', "!="); 44 44 45 45 if (window.eventSender) { … … 54 54 function continueTest() 55 55 { 56 if ( panel.style['display']!= 'none') {56 if (getComputedStyle(panel).display != 'none') { 57 57 setTimeout(continueTest, fadeoutTime); 58 58 return; … … 61 61 consoleWrite(""); 62 62 consoleWrite("** The controls should have the display property set to none"); 63 testExpected(" panel.style['display']", 'none', "==");63 testExpected("getComputedStyle(panel).display", 'none', "=="); 64 64 65 65 consoleWrite(""); … … 73 73 consoleWrite(""); 74 74 consoleWrite("** Video controls should not be shown **"); 75 testExpected(" panel.style['display']", 'none', "==");75 testExpected("getComputedStyle(panel).display", 'none', "=="); 76 76 77 77 consoleWrite(""); … … 83 83 </head> 84 84 <body onload="init()"> 85 Tests that showing / hiding video controls uses the sets thedisplay:none property<br>85 Tests that showing / hiding video controls uses the display:none property<br> 86 86 <video onplay="test()" controls></video> 87 87 </body> -
trunk/LayoutTests/platform/gtk/TestExpectations
r220974 r220985 2118 2118 webkit.org/b/130971 media/track/track-remove-track.html [ Timeout ] 2119 2119 2120 # After webkit.org/b/123097 we flag these tests that also fail in mac2121 webkit.org/b/123097 media/video-controls-toggling.html [ Timeout ]2122 2123 2120 webkit.org/b/145053 http/tests/xmlhttprequest/origin-exact-matching.html [ Timeout Pass ] 2124 2121 -
trunk/LayoutTests/platform/gtk/media/video-controls-toggling-expected.txt
r220984 r220985 1 Tests that showing / hiding video controls uses the sets the display:none property 1 CONSOLE MESSAGE: line 122: TypeError: undefined is not an object (evaluating 'this.captionMenu.style') 2 Tests that showing / hiding video controls uses the display:none property 2 3 3 4 … … 9 10 10 11 ** Test that controls are shown when controls attribute is present ** 11 EXPECTED ( panel.style['display']!= 'none') OK12 EXPECTED (getComputedStyle(panel).display != 'none') OK 12 13 13 14 ** Move mouse outside the video ** … … 15 16 16 17 ** The controls should have the display property set to none 17 EXPECTED ( panel.style['display']== 'none') OK18 EXPECTED (getComputedStyle(panel).display == 'none') OK 18 19 19 20 ** Remove controls attribute** … … 24 25 25 26 ** Video controls should not be shown ** 26 EXPECTED ( panel.style['display']== 'none') OK27 EXPECTED (getComputedStyle(panel).display == 'none') OK 27 28 28 29 END OF TEST
Note: See TracChangeset
for help on using the changeset viewer.