haikuwebkit/LayoutTests/media/navigate-with-pip-should-no...

69 lines
2.3 KiB
HTML
Raw Permalink Normal View History

<!DOCTYPE html>
Add test expectations for macOS Sierra https://bugs.webkit.org/show_bug.cgi?id=158903 Reviewed by Alex Christensen. Tools: * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Sierra.png: Added. * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Sierra@2x.png: Added. * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js: * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css: Added dashboard support. * BuildSlaveSupport/build.webkit.org-config/wkbuild.py: * BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py: Trigger the right build queues on check-in. * Scripts/webkitpy/common/system/platforminfo.py: * Scripts/webkitpy/common/system/platforminfo_unittest.py: * Scripts/webkitpy/layout_tests/models/test_expectations.py: * Scripts/webkitpy/port/mac.py: * Scripts/webkitpy/port/mac_unittest.py: * TestResultServer/static-dashboards/flakiness_dashboard.js: Added cases for Sierra, and updated tests for new baseline search paths. LayoutTests: * TestExpectations: * media/click-placeholder-not-pausing-expected.txt: Added. * media/click-placeholder-not-pausing.html: Added. * media/controls/picture-in-picture-expected.txt: Added. * media/controls/picture-in-picture.html: Added. * media/element-containing-pip-video-going-into-fullscreen-expected.txt: Added. * media/element-containing-pip-video-going-into-fullscreen.html: Added. * media/fullscreen-api-enabled-media-with-presentation-mode-expected.txt: Added. * media/fullscreen-api-enabled-media-with-presentation-mode.html: Added. * media/fullscreen-video-going-into-pip-expected.txt: Added. * media/fullscreen-video-going-into-pip.html: Added. * media/navigate-with-pip-should-not-crash-expected.txt: Added. * media/navigate-with-pip-should-not-crash.html: Added. * media/pip-video-going-into-fullscreen-expected.txt: Added. * media/pip-video-going-into-fullscreen.html: Added. * media/video-contained-in-fullscreen-element-going-into-pip-expected.txt: Added. * media/video-contained-in-fullscreen-element-going-into-pip.html: Added. * platform/mac-elcapitan: Added. * platform/mac-elcapitan/compositing: Added. * platform/mac-elcapitan/compositing/rtl: Added. * platform/mac-elcapitan/compositing/rtl/rtl-overflow-scrolling-expected.txt: Copied from LayoutTests/platform/mac/compositing/rtl/rtl-overflow-scrolling-expected.txt. * platform/mac-elcapitan/fast: Added. * platform/mac-elcapitan/fast/block: Added. * platform/mac-elcapitan/fast/block/float: Added. * platform/mac-elcapitan/fast/block/float/026-expected.png: Copied from LayoutTests/platform/mac/fast/block/float/026-expected.png. * platform/mac-elcapitan/fast/block/float/026-expected.txt: Copied from LayoutTests/platform/mac/fast/block/float/026-expected.txt. * platform/mac-elcapitan/fast/block/float/028-expected.png: Copied from LayoutTests/platform/mac/fast/block/float/028-expected.png. * platform/mac-elcapitan/fast/block/float/028-expected.txt: Copied from LayoutTests/platform/mac/fast/block/float/028-expected.txt. * platform/mac-elcapitan/fast/overflow: Added. * platform/mac-elcapitan/fast/overflow/unreachable-overflow-rtl-bug-expected.png: Copied from LayoutTests/platform/mac/fast/overflow/unreachable-overflow-rtl-bug-expected.png. * platform/mac-elcapitan/fast/overflow/unreachable-overflow-rtl-bug-expected.txt: Copied from LayoutTests/platform/mac/fast/overflow/unreachable-overflow-rtl-bug-expected.txt. * platform/mac-elcapitan/fast/ruby: Added. * platform/mac-elcapitan/fast/ruby/bopomofo-expected.png: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-expected.png. * platform/mac-elcapitan/fast/ruby/bopomofo-expected.txt: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-expected.txt. * platform/mac-elcapitan/fast/ruby/bopomofo-letter-spacing-expected.png: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-letter-spacing-expected.png. * platform/mac-elcapitan/fast/ruby/bopomofo-letter-spacing-expected.txt: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-letter-spacing-expected.txt. * platform/mac-elcapitan/fast/ruby/bopomofo-rl-expected.png: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-rl-expected.png. * platform/mac-elcapitan/fast/ruby/bopomofo-rl-expected.txt: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-rl-expected.txt. * platform/mac-elcapitan/fast/text: Added. * platform/mac-elcapitan/fast/text/crash-complex-text-surrogate-expected.txt: Copied from LayoutTests/platform/mac/fast/text/crash-complex-text-surrogate-expected.txt. * platform/mac-elcapitan/fast/text/justify-ideograph-complex-expected.png: Copied from LayoutTests/platform/mac/fast/text/justify-ideograph-complex-expected.png. * platform/mac-elcapitan/fast/text/justify-ideograph-complex-expected.txt: Copied from LayoutTests/platform/mac/fast/text/justify-ideograph-complex-expected.txt. * platform/mac-elcapitan/fast/text/line-initial-and-final-swashes-expected.png: Copied from LayoutTests/platform/mac/fast/text/line-initial-and-final-swashes-expected.png. * platform/mac-elcapitan/fast/text/line-initial-and-final-swashes-expected.txt: Copied from LayoutTests/platform/mac/fast/text/line-initial-and-final-swashes-expected.txt. * platform/mac-elcapitan/http: Added. * platform/mac-elcapitan/http/tests: Added. * platform/mac-elcapitan/http/tests/cookies: Added. * platform/mac-elcapitan/http/tests/cookies/third-party-cookie-relaxing-expected.txt: Copied from LayoutTests/http/tests/cookies/third-party-cookie-relaxing-expected.txt. * platform/mac-elcapitan/http/tests/security: Added. * platform/mac-elcapitan/http/tests/security/mixedContent: Added. * platform/mac-elcapitan/http/tests/security/mixedContent/insecure-audio-video-in-main-frame-expected.txt: Copied from LayoutTests/platform/mac/http/tests/security/mixedContent/insecure-audio-video-in-main-frame-expected.txt. * platform/mac-elcapitan/media: Added. * platform/mac-elcapitan/media/controls-strict-expected.png: Copied from LayoutTests/platform/mac/media/controls-strict-expected.png. * platform/mac-elcapitan/media/controls-strict-expected.txt: Copied from LayoutTests/platform/mac/media/controls-strict-expected.txt. * platform/mac-elcapitan/media/controls-without-preload-expected.png: Copied from LayoutTests/platform/mac/media/controls-without-preload-expected.png. * platform/mac-elcapitan/media/controls-without-preload-expected.txt: Copied from LayoutTests/platform/mac/media/controls-without-preload-expected.txt. * platform/mac-elcapitan/media/track: Added. * platform/mac-elcapitan/media/track/video-track-alternate-groups-expected.txt: Copied from LayoutTests/platform/mac/media/track/video-track-alternate-groups-expected.txt. * platform/mac-elcapitan/media/video-controls-rendering-expected.txt: Copied from LayoutTests/platform/mac/media/video-controls-rendering-expected.txt. * platform/mac-elcapitan/media/video-display-toggle-expected.png: Copied from LayoutTests/platform/mac/media/video-display-toggle-expected.png. * platform/mac-elcapitan/media/video-display-toggle-expected.txt: Copied from LayoutTests/platform/mac/media/video-display-toggle-expected.txt. * platform/mac-elcapitan/media/video-no-audio-expected.txt: Copied from LayoutTests/platform/mac/media/video-no-audio-expected.txt. * platform/mac-elcapitan/media/video-volume-slider-expected.txt: Copied from LayoutTests/platform/mac/media/video-volume-slider-expected.txt. * platform/mac-wk1/TestExpectations: * platform/mac-wk2/TestExpectations: * platform/mac-wk2/fast/scrolling: Added. * platform/mac-wk2/fast/scrolling/rtl-scrollbars-animation-property-expected.txt: Added. * platform/mac/TestExpectations: * platform/mac/compositing/rtl/rtl-overflow-scrolling-expected.png: Added. * platform/mac/compositing/rtl/rtl-overflow-scrolling-expected.txt: * platform/mac/fast/block/float/026-expected.png: * platform/mac/fast/block/float/026-expected.txt: * platform/mac/fast/block/float/028-expected.png: * platform/mac/fast/block/float/028-expected.txt: * platform/mac/fast/overflow/unreachable-overflow-rtl-bug-expected.png: * platform/mac/fast/overflow/unreachable-overflow-rtl-bug-expected.txt: * platform/mac/fast/ruby/bopomofo-expected.png: * platform/mac/fast/ruby/bopomofo-expected.txt: * platform/mac/fast/ruby/bopomofo-letter-spacing-expected.png: * platform/mac/fast/ruby/bopomofo-letter-spacing-expected.txt: * platform/mac/fast/ruby/bopomofo-rl-expected.png: * platform/mac/fast/ruby/bopomofo-rl-expected.txt: * platform/mac/fast/text/crash-complex-text-surrogate-expected.txt: * platform/mac/fast/text/justify-ideograph-complex-expected.png: * platform/mac/fast/text/justify-ideograph-complex-expected.txt: * platform/mac/fast/text/line-initial-and-final-swashes-expected.png: * platform/mac/fast/text/line-initial-and-final-swashes-expected.txt: * platform/mac/http/tests/cookies/third-party-cookie-relaxing-expected.txt: Added. * platform/mac/http/tests/security/mixedContent/insecure-audio-video-in-main-frame-expected.txt: * platform/mac/media/controls-strict-expected.png: Removed. * platform/mac/media/controls-without-preload-expected.png: Removed. * platform/mac/media/track/video-track-alternate-groups-expected.txt: * platform/mac/media/video-controls-rendering-expected.png: Removed. * platform/mac/media/video-display-toggle-expected.png: Removed. * platform/mac/media/video-no-audio-expected.png: Removed. * platform/mac/media/video-volume-slider-expected.png: Removed. Canonical link: https://commits.webkit.org/176993@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-06-20 00:17:05 +00:00
<html>
<head>
<title>Navigate to another page while video is playing in pip should not crash</title>
<script src="media-file.js"></script>
<script src="video-test.js"></script>
<script>
var mediaElement;
var videoframe;
if (window.internals) {
internals.settings.setAllowsPictureInPictureMediaPlayback(true);
internals.setMockVideoPresentationModeEnabled(true);
}
Add test expectations for macOS Sierra https://bugs.webkit.org/show_bug.cgi?id=158903 Reviewed by Alex Christensen. Tools: * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Sierra.png: Added. * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Images/Sierra@2x.png: Added. * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js: * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css: Added dashboard support. * BuildSlaveSupport/build.webkit.org-config/wkbuild.py: * BuildSlaveSupport/build.webkit.org-config/wkbuild_unittest.py: Trigger the right build queues on check-in. * Scripts/webkitpy/common/system/platforminfo.py: * Scripts/webkitpy/common/system/platforminfo_unittest.py: * Scripts/webkitpy/layout_tests/models/test_expectations.py: * Scripts/webkitpy/port/mac.py: * Scripts/webkitpy/port/mac_unittest.py: * TestResultServer/static-dashboards/flakiness_dashboard.js: Added cases for Sierra, and updated tests for new baseline search paths. LayoutTests: * TestExpectations: * media/click-placeholder-not-pausing-expected.txt: Added. * media/click-placeholder-not-pausing.html: Added. * media/controls/picture-in-picture-expected.txt: Added. * media/controls/picture-in-picture.html: Added. * media/element-containing-pip-video-going-into-fullscreen-expected.txt: Added. * media/element-containing-pip-video-going-into-fullscreen.html: Added. * media/fullscreen-api-enabled-media-with-presentation-mode-expected.txt: Added. * media/fullscreen-api-enabled-media-with-presentation-mode.html: Added. * media/fullscreen-video-going-into-pip-expected.txt: Added. * media/fullscreen-video-going-into-pip.html: Added. * media/navigate-with-pip-should-not-crash-expected.txt: Added. * media/navigate-with-pip-should-not-crash.html: Added. * media/pip-video-going-into-fullscreen-expected.txt: Added. * media/pip-video-going-into-fullscreen.html: Added. * media/video-contained-in-fullscreen-element-going-into-pip-expected.txt: Added. * media/video-contained-in-fullscreen-element-going-into-pip.html: Added. * platform/mac-elcapitan: Added. * platform/mac-elcapitan/compositing: Added. * platform/mac-elcapitan/compositing/rtl: Added. * platform/mac-elcapitan/compositing/rtl/rtl-overflow-scrolling-expected.txt: Copied from LayoutTests/platform/mac/compositing/rtl/rtl-overflow-scrolling-expected.txt. * platform/mac-elcapitan/fast: Added. * platform/mac-elcapitan/fast/block: Added. * platform/mac-elcapitan/fast/block/float: Added. * platform/mac-elcapitan/fast/block/float/026-expected.png: Copied from LayoutTests/platform/mac/fast/block/float/026-expected.png. * platform/mac-elcapitan/fast/block/float/026-expected.txt: Copied from LayoutTests/platform/mac/fast/block/float/026-expected.txt. * platform/mac-elcapitan/fast/block/float/028-expected.png: Copied from LayoutTests/platform/mac/fast/block/float/028-expected.png. * platform/mac-elcapitan/fast/block/float/028-expected.txt: Copied from LayoutTests/platform/mac/fast/block/float/028-expected.txt. * platform/mac-elcapitan/fast/overflow: Added. * platform/mac-elcapitan/fast/overflow/unreachable-overflow-rtl-bug-expected.png: Copied from LayoutTests/platform/mac/fast/overflow/unreachable-overflow-rtl-bug-expected.png. * platform/mac-elcapitan/fast/overflow/unreachable-overflow-rtl-bug-expected.txt: Copied from LayoutTests/platform/mac/fast/overflow/unreachable-overflow-rtl-bug-expected.txt. * platform/mac-elcapitan/fast/ruby: Added. * platform/mac-elcapitan/fast/ruby/bopomofo-expected.png: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-expected.png. * platform/mac-elcapitan/fast/ruby/bopomofo-expected.txt: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-expected.txt. * platform/mac-elcapitan/fast/ruby/bopomofo-letter-spacing-expected.png: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-letter-spacing-expected.png. * platform/mac-elcapitan/fast/ruby/bopomofo-letter-spacing-expected.txt: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-letter-spacing-expected.txt. * platform/mac-elcapitan/fast/ruby/bopomofo-rl-expected.png: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-rl-expected.png. * platform/mac-elcapitan/fast/ruby/bopomofo-rl-expected.txt: Copied from LayoutTests/platform/mac/fast/ruby/bopomofo-rl-expected.txt. * platform/mac-elcapitan/fast/text: Added. * platform/mac-elcapitan/fast/text/crash-complex-text-surrogate-expected.txt: Copied from LayoutTests/platform/mac/fast/text/crash-complex-text-surrogate-expected.txt. * platform/mac-elcapitan/fast/text/justify-ideograph-complex-expected.png: Copied from LayoutTests/platform/mac/fast/text/justify-ideograph-complex-expected.png. * platform/mac-elcapitan/fast/text/justify-ideograph-complex-expected.txt: Copied from LayoutTests/platform/mac/fast/text/justify-ideograph-complex-expected.txt. * platform/mac-elcapitan/fast/text/line-initial-and-final-swashes-expected.png: Copied from LayoutTests/platform/mac/fast/text/line-initial-and-final-swashes-expected.png. * platform/mac-elcapitan/fast/text/line-initial-and-final-swashes-expected.txt: Copied from LayoutTests/platform/mac/fast/text/line-initial-and-final-swashes-expected.txt. * platform/mac-elcapitan/http: Added. * platform/mac-elcapitan/http/tests: Added. * platform/mac-elcapitan/http/tests/cookies: Added. * platform/mac-elcapitan/http/tests/cookies/third-party-cookie-relaxing-expected.txt: Copied from LayoutTests/http/tests/cookies/third-party-cookie-relaxing-expected.txt. * platform/mac-elcapitan/http/tests/security: Added. * platform/mac-elcapitan/http/tests/security/mixedContent: Added. * platform/mac-elcapitan/http/tests/security/mixedContent/insecure-audio-video-in-main-frame-expected.txt: Copied from LayoutTests/platform/mac/http/tests/security/mixedContent/insecure-audio-video-in-main-frame-expected.txt. * platform/mac-elcapitan/media: Added. * platform/mac-elcapitan/media/controls-strict-expected.png: Copied from LayoutTests/platform/mac/media/controls-strict-expected.png. * platform/mac-elcapitan/media/controls-strict-expected.txt: Copied from LayoutTests/platform/mac/media/controls-strict-expected.txt. * platform/mac-elcapitan/media/controls-without-preload-expected.png: Copied from LayoutTests/platform/mac/media/controls-without-preload-expected.png. * platform/mac-elcapitan/media/controls-without-preload-expected.txt: Copied from LayoutTests/platform/mac/media/controls-without-preload-expected.txt. * platform/mac-elcapitan/media/track: Added. * platform/mac-elcapitan/media/track/video-track-alternate-groups-expected.txt: Copied from LayoutTests/platform/mac/media/track/video-track-alternate-groups-expected.txt. * platform/mac-elcapitan/media/video-controls-rendering-expected.txt: Copied from LayoutTests/platform/mac/media/video-controls-rendering-expected.txt. * platform/mac-elcapitan/media/video-display-toggle-expected.png: Copied from LayoutTests/platform/mac/media/video-display-toggle-expected.png. * platform/mac-elcapitan/media/video-display-toggle-expected.txt: Copied from LayoutTests/platform/mac/media/video-display-toggle-expected.txt. * platform/mac-elcapitan/media/video-no-audio-expected.txt: Copied from LayoutTests/platform/mac/media/video-no-audio-expected.txt. * platform/mac-elcapitan/media/video-volume-slider-expected.txt: Copied from LayoutTests/platform/mac/media/video-volume-slider-expected.txt. * platform/mac-wk1/TestExpectations: * platform/mac-wk2/TestExpectations: * platform/mac-wk2/fast/scrolling: Added. * platform/mac-wk2/fast/scrolling/rtl-scrollbars-animation-property-expected.txt: Added. * platform/mac/TestExpectations: * platform/mac/compositing/rtl/rtl-overflow-scrolling-expected.png: Added. * platform/mac/compositing/rtl/rtl-overflow-scrolling-expected.txt: * platform/mac/fast/block/float/026-expected.png: * platform/mac/fast/block/float/026-expected.txt: * platform/mac/fast/block/float/028-expected.png: * platform/mac/fast/block/float/028-expected.txt: * platform/mac/fast/overflow/unreachable-overflow-rtl-bug-expected.png: * platform/mac/fast/overflow/unreachable-overflow-rtl-bug-expected.txt: * platform/mac/fast/ruby/bopomofo-expected.png: * platform/mac/fast/ruby/bopomofo-expected.txt: * platform/mac/fast/ruby/bopomofo-letter-spacing-expected.png: * platform/mac/fast/ruby/bopomofo-letter-spacing-expected.txt: * platform/mac/fast/ruby/bopomofo-rl-expected.png: * platform/mac/fast/ruby/bopomofo-rl-expected.txt: * platform/mac/fast/text/crash-complex-text-surrogate-expected.txt: * platform/mac/fast/text/justify-ideograph-complex-expected.png: * platform/mac/fast/text/justify-ideograph-complex-expected.txt: * platform/mac/fast/text/line-initial-and-final-swashes-expected.png: * platform/mac/fast/text/line-initial-and-final-swashes-expected.txt: * platform/mac/http/tests/cookies/third-party-cookie-relaxing-expected.txt: Added. * platform/mac/http/tests/security/mixedContent/insecure-audio-video-in-main-frame-expected.txt: * platform/mac/media/controls-strict-expected.png: Removed. * platform/mac/media/controls-without-preload-expected.png: Removed. * platform/mac/media/track/video-track-alternate-groups-expected.txt: * platform/mac/media/video-controls-rendering-expected.png: Removed. * platform/mac/media/video-display-toggle-expected.png: Removed. * platform/mac/media/video-no-audio-expected.png: Removed. * platform/mac/media/video-volume-slider-expected.png: Removed. Canonical link: https://commits.webkit.org/176993@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-06-20 00:17:05 +00:00
function init()
{
videoframe = document.getElementById("videoframe");
videoframe.onload = frameLoaded;
videoframe.src = findMediaFile("video", "content/test");
}
function frameLoaded()
{
consoleWrite("Video frame loaded.");
var standaloneMediaDocument = document.getElementById("videoframe").contentDocument;
mediaElement = standaloneMediaDocument.querySelector("video");
if (!mediaElement) {
failTest("ERROR: Video element was not found in frameLoaded().");
return;
}
runWithKeyDown(function(){ mediaElement.play(); });
if (!('webkitSupportsPresentationMode' in mediaElement && 'webkitPresentationMode' in mediaElement)) {
failTest("Presentation mode is not supported in this video element.")
return;
}
consoleWrite("Going into Picture-in-Picture");
mediaElement.addEventListener('webkitpresentationmodechanged', onpresentationmodechanged);
runWithKeyDown(function(){ mediaElement.webkitSetPresentationMode('picture-in-picture'); });
}
function onpresentationmodechanged()
{
testExpected("mediaElement.webkitPresentationMode", "picture-in-picture");
testExpected("mediaElement.paused", false);
videoframe.onload = checkCompletedNavigation;
videoframe.src = "about:blank";
}
function checkCompletedNavigation()
{
testExpected("videoframe.contentDocument.location", "about:blank");
endTest();
}
</script>
</head>
<body onload="init()">
<p>Navigate to another page while video is playing in pip should not crash</p>
<iframe id="videoframe" width=400 height=300></iframe>
</body>
</html>