Commit 8682a820 authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@b78927a145406c220cc8a8bc2de97cde9eee3860

Using wpt-import in Chromium 19c668ff.
With Chromium commits locally applied on WPT:
1d5b803f "Add WebVTT support for inline styling - Web Platform Tests"
f701be68 "[css-pseudo] Restrict the properties allowed in ::marker"
96a711f0 "CSS: Update min-width and min-height parsing WPTs"
c47a6f0b "Use a transformed bounding box when hit testing transformed elements"


Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
foolip@chromium.org, lpz@chromium.org, robertma@chromium.org:
  external/wpt/tools
foolip@chromium.org, robertma@chromium.org, smcgruer@chromium.org:
  external/wpt/infrastructure

NOAUTOREVERT=true
TBR=raphael.kubo.da.costa

No-Export: true
Change-Id: Ifffb45b1403daec1c269eea8dd6bacc44782d33d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1892271Reviewed-by: default avatarWPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#711121}
parent b00e4869
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = Uncaught Error: error outside any setup or test
PASS Uncaught exception following subtest
Harness: the test ran to completion.
<!DOCTYPE html>
<meta charset=utf-8>
<title>Uncaught exception following subtest</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {});
throw new Error("error outside any setup or test");
</script>
This is a testharness.js-based test.
FAIL Uncaught exception in single-page test Uncaught Error: error outside any setup or test
Harness: the test ran to completion.
<!DOCTYPE html>
<meta charset=utf-8>
<title>Uncaught exception in single-page test</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
setup({ single_test: true });
throw new Error("error outside any setup or test");
</script>
<!DOCTYPE html>
<meta charset=utf-8>
<title>Unhandled rejection following subtest</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {});
Promise.reject(new Error("error outside any setup or test"));
</script>
This is a testharness.js-based test.
FAIL Unhandled rejection in single-page test Unhandled rejection: error outside any setup or test
Harness: the test ran to completion.
<!DOCTYPE html>
<meta charset=utf-8>
<title>Unhandled rejection in single-page test</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
setup({ single_test: true });
Promise.reject(new Error("error outside any setup or test"));
</script>
[uncaught-exception-following-subtest.html]
expected: ERROR
[Uncaught exception following subtest]
expected: PASS
[uncaught-exception-single-test.html]
[Uncaught exception in single-page test]
expected: FAIL
[unhandled-rejection-following-subtest.html]
expected: ERROR
[Unhandled rejection following subtest]
expected: PASS
[unhandled-rejection-single-test.html]
[Unhandled rejection in single-page test]
expected: FAIL
......@@ -9,18 +9,18 @@
<input id="file_input" name="file_input" type="file">
</form>
<script>
let form = document.getElementById("form");
let input = document.getElementById("file_input");
test_driver
.send_keys(input, "{{fs_path(file_upload_data.txt)}}")
.then(() =>
fetch("file_upload.py",
{method: "POST",
body: new FormData(form)}))
.then(response => response.text())
.then(data => {
assert_equals(data, "PASS");
done();
})
.catch(() => assert_unreached("File upload failed"));
promise_test(() => {
let form = document.getElementById("form");
let input = document.getElementById("file_input");
return test_driver
.send_keys(input, "{{fs_path(file_upload_data.txt)}}")
.then(() =>
fetch("file_upload.py",
{method: "POST",
body: new FormData(form)}))
.then(response => response.text())
.then(data => {
assert_equals(data, "PASS");
});
});
</script>
......@@ -3,6 +3,37 @@ set -ex
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
WPT_ROOT=$SCRIPT_DIR/../..
EPOCHS=(
epochs/three_hourly::3h
epochs/six_hourly::6h
epochs/twelve_hourly::12h
epochs/daily::1d
epochs/weekly::1w
)
function get_epoch_branch_name () {
echo ${1} | awk -F '::' '{print $1}'
}
function get_epoch_timeval () {
echo ${1} | awk -F '::' '{print $2}'
}
main () {
ALL_BRANCHES_NAMES=""
for e in "${EPOCHS[@]}";
do
EPOCH=$(get_epoch_timeval ${e})
EPOCH_BRANCH_NAME=$(get_epoch_branch_name ${e})
git branch ${EPOCH_BRANCH_NAME} $(./wpt rev-list --epoch ${EPOCH})
ALL_BRANCHES_NAMES="${ALL_BRANCHES_NAMES} ${EPOCH_BRANCH_NAME}"
done
# This is safe because `git push` will by default fail for a non-fast-forward
# push, for example if the remote branch is ahead of the local branch.
git push ${REMOTE} ${ALL_BRANCHES_NAMES}
}
cd $WPT_ROOT
if [ -z "$GITHUB_TOKEN" ]; then
......@@ -12,7 +43,4 @@ fi
REMOTE=https://x-access-token:$GITHUB_TOKEN@github.com/web-platform-tests/wpt.git
git branch epochs/three_hourly $(./wpt rev-list --epoch 3h)
# This is safe because `git push` will by default fail for a non-fast-forward
# push, for example if the remote branch is ahead of the local branch.
git push $REMOTE epochs/three_hourly
main
......@@ -39,7 +39,6 @@ def executor_kwargs(test_type, server_config, cache_manager, run_info_data,
executor_kwargs["supports_eager_pageload"] = False
capabilities = {
"acceptInsecureCerts": True,
"goog:chromeOptions": {
"prefs": {
"profile": {
......@@ -62,7 +61,9 @@ def executor_kwargs(test_type, server_config, cache_manager, run_info_data,
chrome_options["binary"] = kwargs["binary"]
# Here we set a few Chrome flags that are always passed.
chrome_options["args"] = []
# ChromeDriver's "acceptInsecureCerts" capability only controls the current
# browsing context, whereas the CLI flag works for workers, too.
chrome_options["args"] = ["--ignore-certificate-errors"]
# Allow audio autoplay without a user gesture.
chrome_options["args"].append("--autoplay-policy=no-user-gesture-required")
# Allow WebRTC tests to call getUserMedia.
......
......@@ -18,7 +18,7 @@ DEFAULT_CSS_STYLE = """
</style>
"""
DEFAULT_CONTENT = "<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>"
DEFAULT_CONTENT = "<div>Lorem ipsum dolor sit amet.</div>"
def take_element_screenshot(session, element_id):
......
......@@ -18,7 +18,7 @@ DEFAULT_CSS_STYLE = """
</style>
"""
DEFAULT_CONTENT = "<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>"
DEFAULT_CONTENT = "<div>Lorem ipsum dolor sit amet.</div>"
def take_screenshot(session):
......
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