Bug 1612783 [wpt PR 21544] - Split up Native File System postmessage() tests, a=testonly
commitcc70f1c4150858230bda4795082e7382d8ad2240
authorSteve Becker <stevebe@microsoft.com>
Wed, 12 Feb 2020 11:24:57 +0000 (12 11:24 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 14 Feb 2020 19:08:58 +0000 (14 19:08 +0000)
tree399b17ee568f7b6a688a32fbd9f2bdd6d67367c8
parent3dee0fc3b8f7bdeef1c7490cf4240924fe58d167
Bug 1612783 [wpt PR 21544] - Split up Native File System postmessage() tests, a=testonly

Automatic update from web-platform-tests
Split up Native File System postmessage() tests

Splits each of the following tests into 3 separate tests to avoid
timeouts:

native_FileSystemBaseHandle-postMessage-manual.https.tentative.html
native_FileSystemBaseHandle-postMessage-MessagePort-manual.https.tentative.html

These tests take 5 to 7 seconds to pass, which is dangerously close to
the 7 second timeout.  A previous attempt added <meta timeout=long> to
address the timeouts.  However, wpt.py does not respect
<meta timeout=long> for tests with filenames that contain "manual".
The following bug requests a fix for wpt.py:

https://github.com/web-platform-tests/wpt/issues/21527

This change solves the timeout by splitting  each test into 3 groups:
iframe tests, window.open() tests and worker tests.  The change adds the
following 12 test files since each test runs twice, once for the native
file system and once for the virtual file system:

Native file system tests:

native_FileSystemBaseHandle-postMessage-frames-manual.https.tentative.html
native_FileSystemBaseHandle-postMessage-windows-manual.https.tentative.html
native_FileSystemBaseHandle-postMessage-workers-manual.https.tentative.html

native_FileSystemBaseHandle-postMessage-MessagePort-frames-manual.https.tentative.html
native_FileSystemBaseHandle-postMessage-MessagePort-windows-manual.https.tentative.html
native_FileSystemBaseHandle-postMessage-MessagePort-workers-manual.https.tentative.html

Virtual file system tests:

sandboxed_FileSystemBaseHandle-postMessage-frames.tentative.https.window.js
sandboxed_FileSystemBaseHandle-postMessage-windows.tentative.https.window.js
sandboxed_FileSystemBaseHandle-postMessage-workers.tentative.https.window.js

sandboxed_FileSystemBaseHandle-postMessage-MessagePort-frames.tentative.https.window.js
sandboxed_FileSystemBaseHandle-postMessage-MessagePort-windows.tentative.https.window.js
sandboxed_FileSystemBaseHandle-postMessage-MessagePort-workers.tentative.https.window.js

Bug: 1046634
Bug: 1044519
Change-Id: Ide552f708d7514e299a68887b91659ac2226018d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2035055
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Commit-Queue: Steve Becker <stevebe@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#739069}

--

wpt-commits: b3be46db70265c5da74dff78ec057ade6036ef67
wpt-pr: 21544
21 files changed:
testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-MessagePort-frames-manual.https.tentative.html [copied from testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-MessagePort-manual.https.tentative.html with 80% similarity]
testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-MessagePort-windows-manual.https.tentative.html [copied from testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-MessagePort-manual.https.tentative.html with 80% similarity]
testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-MessagePort-workers-manual.https.tentative.html [moved from testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-MessagePort-manual.https.tentative.html with 92% similarity]
testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-frames-manual.https.tentative.html [copied from testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-manual.https.tentative.html with 73% similarity]
testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-windows-manual.https.tentative.html [copied from testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-manual.https.tentative.html with 73% similarity]
testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-workers-manual.https.tentative.html [moved from testing/web-platform/tests/native-file-system/native_FileSystemBaseHandle-postMessage-manual.https.tentative.html with 85% similarity]
testing/web-platform/tests/native-file-system/resources/messaging-helpers.js
testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-frames.tentative.https.window.js [copied from testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-MessagePort.tentative.https.window.js with 73% similarity]
testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-windows.tentative.https.window.js [copied from testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-MessagePort.tentative.https.window.js with 73% similarity]
testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-MessagePort-workers.tentative.https.window.js [moved from testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-MessagePort.tentative.https.window.js with 91% similarity]
testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-frames.tentative.https.window.js [copied from testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage.tentative.https.window.js with 60% similarity]
testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-windows.tentative.https.window.js [copied from testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage.tentative.https.window.js with 60% similarity]
testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage-workers.tentative.https.window.js [moved from testing/web-platform/tests/native-file-system/sandboxed_FileSystemBaseHandle-postMessage.tentative.https.window.js with 79% similarity]
testing/web-platform/tests/native-file-system/script-tests/FileSystemBaseHandle-postMessage-MessagePort-frames.js [new file with mode: 0644]
testing/web-platform/tests/native-file-system/script-tests/FileSystemBaseHandle-postMessage-MessagePort-windows.js [new file with mode: 0644]
testing/web-platform/tests/native-file-system/script-tests/FileSystemBaseHandle-postMessage-MessagePort-workers.js [new file with mode: 0644]
testing/web-platform/tests/native-file-system/script-tests/FileSystemBaseHandle-postMessage-MessagePort.js [deleted file]
testing/web-platform/tests/native-file-system/script-tests/FileSystemBaseHandle-postMessage-frames.js [new file with mode: 0644]
testing/web-platform/tests/native-file-system/script-tests/FileSystemBaseHandle-postMessage-windows.js [new file with mode: 0644]
testing/web-platform/tests/native-file-system/script-tests/FileSystemBaseHandle-postMessage-workers.js [new file with mode: 0644]
testing/web-platform/tests/native-file-system/script-tests/FileSystemBaseHandle-postMessage.js [deleted file]