Commit 1dd795cf authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@43cb8f728ebfd5f312200d18bbe718fea62c1442

Using wpt-import in Chromium 28f2d530.

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

NOAUTOREVERT=true
TBR=smcgruer@google.com

No-Export: true
Cq-Include-Trybots: luci.chromium.try:linux-wpt-identity-fyi-rel,linux-wpt-payments-fyi-rel
Change-Id: I1a4d887d25225f3525ba0eddb1c7fcfc8adca97e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2547267Reviewed-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@{#828918}
parent 9f1c0c24
<!DOCTYPE html>
<meta charset="utf-8" />
<title>&lt;link rel="icon"&gt; doesn't fire an error event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test((t) => {
const link = document.createElement("link");
link.rel = "icon";
link.href = "http://{{hosts[][nonexistent]}}";
link.addEventListener("error", t.unreached_func());
document.head.append(link);
t.step_timeout(() => t.done(), 2000);
}, document.title);
</script>
<!DOCTYPE html>
<meta charset="utf-8" />
<title>&lt;link rel="icon"&gt; doesn't fire a load event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test((t) => {
const link = document.createElement("link");
link.rel = "icon";
link.href = "/images/wpt-logo/wpt-logo-darkblue-bg.svg";
link.addEventListener("load", t.unreached_func());
document.head.append(link);
t.step_timeout(() => t.done(), 2000);
}, document.title);
</script>
......@@ -2,6 +2,7 @@ import argparse
import logging
import os
import re
import subprocess
import sys
from collections import OrderedDict
......@@ -76,8 +77,19 @@ def branch_point():
if item and item != "^%s" % head]
# get all commits on HEAD but not reachable from anything in not_heads
commits = git("rev-list", "--topo-order", "--parents", "HEAD", *not_heads)
cmd = ["git", "rev-list", "--topo-order", "--parents", "--stdin", "HEAD"]
proc = subprocess.Popen(cmd,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
cwd=wpt_root)
commits_bytes, _ = proc.communicate(b"\n".join(item.encode("ascii") for item in not_heads))
if proc.returncode != 0:
raise subprocess.CalledProcessError(proc.returncode,
cmd,
commits_bytes)
commit_parents = OrderedDict() # type: Dict[Text, List[Text]]
commits = commits_bytes.decode("ascii")
if commits:
for line in commits.split("\n"):
line_commits = line.split(" ")
......
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