зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1509797 [wpt PR 14232] - Rewrite `async_test(document.title)` to just `async_test()`, a=testonly
Automatic update from web-platform-tests
Rewrite `async_test(document.title)` to just `async_test()` (#14232)
If no test name is given, `document.title` is effectively already used
in testharness.js:
0ddb319131/resources/testharness.js (L3218-L3224)
--
wpt-commits: 3573ce8c3157628989bc2657dc4c9646198ba5ea
wpt-pr: 14232
This commit is contained in:
Родитель
666e6b77a8
Коммит
39dad91e6f
|
@ -10,7 +10,7 @@
|
|||
<script>
|
||||
|
||||
var db,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
records = [ { pKey: "primaryKey_0", iKey: "indexKey_0" },
|
||||
{ pKey: "primaryKey_1", iKey: "indexKey_1" } ];
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<script type="text/javascript">
|
||||
|
||||
var db,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
records = [ { pKey: "primaryKey_0", iKey: "indexKey_0" },
|
||||
{ pKey: "primaryKey_1", iKey: "indexKey_1" } ];
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<script>
|
||||
var db,
|
||||
count = 0,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
records = [ { pKey: "primaryKey_0", iKey: "indexKey_0" },
|
||||
{ pKey: "primaryKey_1", iKey: "indexKey_1" },
|
||||
{ pKey: "primaryKey_1-2", iKey: "indexKey_1" } ],
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<script>
|
||||
|
||||
var db,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
records = [ { pKey: "primaryKey_0", iKey: "indexKey_0" },
|
||||
{ pKey: "primaryKey_1", iKey: "indexKey_1" },
|
||||
{ pKey: "primaryKey_1-2", iKey: "indexKey_1" },
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<script>
|
||||
|
||||
var db,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
records = [ { pKey: "primaryKey_0", iKey: "indexKey_0" },
|
||||
{ pKey: "primaryKey_1", iKey: "indexKey_1" },
|
||||
{ pKey: "primaryKey_1-2", iKey: "indexKey_1" },
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script>
|
||||
|
||||
var db,
|
||||
t = async_test(document.title);
|
||||
t = async_test();
|
||||
|
||||
var open_rq = createdb(t);
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script>
|
||||
var db,
|
||||
count = 0,
|
||||
t = async_test(document.title);
|
||||
t = async_test();
|
||||
|
||||
var open_rq = createdb(t);
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script>
|
||||
var db,
|
||||
count = 0,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
records = [ { pKey: "primaryKey_0", obj: { iKey: "iKey_0" }},
|
||||
{ pKey: "primaryKey_1", obj: { iKey: "iKey_1" }},
|
||||
{ pKey: "primaryKey_2", obj: { iKey: "iKey_2" }} ],
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script>
|
||||
var db,
|
||||
count = 0,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
records = [ { pKey: "primaryKey_0", obj: { iKey: "iKey_0" }},
|
||||
{ pKey: "primaryKey_2", obj: { iKey: "iKey_2" }} ],
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script>
|
||||
var db,
|
||||
count = 0,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
records = [ { pKey: "primaryKey_0" },
|
||||
{ pKey: "primaryKey_1" },
|
||||
{ pKey: "primaryKey_2" } ],
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script>
|
||||
var db,
|
||||
count = 0,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
records = [ { pKey: "primaryKey_0" },
|
||||
{ pKey: "primaryKey_2" } ],
|
||||
expected_records = [ { pKey: "primaryKey_0" },
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script>
|
||||
|
||||
var db,
|
||||
t = async_test(document.title)
|
||||
t = async_test()
|
||||
|
||||
var open_rq = createdb(t);
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<script>
|
||||
var db,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
open_rq = createdb(t)
|
||||
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<script>
|
||||
|
||||
var t = async_test(document.title),
|
||||
var t = async_test(),
|
||||
open_rq = createdb(t)
|
||||
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<script>
|
||||
|
||||
var t = async_test(document.title),
|
||||
var t = async_test(),
|
||||
keys = [],
|
||||
open_rq = createdb(t)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<script>
|
||||
var db,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
open_rq = createdb(t);
|
||||
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<script>
|
||||
var db
|
||||
var open_rq = createdb(async_test(document.title), undefined, 9)
|
||||
var open_rq = createdb(async_test(), undefined, 9)
|
||||
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
db = e.target.result
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<script>
|
||||
var db, db2;
|
||||
var open_rq = createdb(async_test(document.title), undefined, 9);
|
||||
var open_rq = createdb(async_test(), undefined, 9);
|
||||
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
db = e.target.result;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<script>
|
||||
var db;
|
||||
var count_done = 0;
|
||||
var open_rq = createdb(async_test(document.title));
|
||||
var open_rq = createdb(async_test());
|
||||
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
db = e.target.result;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<script src="support.js"></script>
|
||||
|
||||
<script>
|
||||
createdb(async_test(document.title)).onupgradeneeded = function(e) {
|
||||
createdb(async_test()).onupgradeneeded = function(e) {
|
||||
var store = e.target.result.createObjectStore("store");
|
||||
|
||||
assert_throws('InvalidAccessError', function() {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
var db,
|
||||
expected_keys = [1, 2, 2, 3, 3];
|
||||
|
||||
var open_rq = createdb(async_test(document.title))
|
||||
var open_rq = createdb(async_test())
|
||||
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
db = e.target.result;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<script>
|
||||
var db,
|
||||
t = async_test(document.title);
|
||||
t = async_test();
|
||||
|
||||
var open_rq = createdb(t);
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<script>
|
||||
var db, aborted,
|
||||
t = async_test(document.title)
|
||||
t = async_test()
|
||||
|
||||
var open_rq = createdb(t);
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<script>
|
||||
var db,
|
||||
events = [],
|
||||
t = async_test(document.title)
|
||||
t = async_test()
|
||||
|
||||
var open_rq = createdb(t);
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<script>
|
||||
var db, aborted,
|
||||
t = async_test(document.title)
|
||||
t = async_test()
|
||||
|
||||
var open_rq = createdb(t);
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
var db,
|
||||
events = [],
|
||||
t = async_test(document.title)
|
||||
t = async_test()
|
||||
|
||||
var open_rq = createdb(t);
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
var db,
|
||||
events = [],
|
||||
t = async_test(document.title)
|
||||
t = async_test()
|
||||
|
||||
var open_rq = createdb(t);
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<script>
|
||||
var db,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
now = new Date(),
|
||||
mar18 = new Date(1111111111111),
|
||||
ar = ["Yay", 2, -Infinity],
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<script>
|
||||
var db,
|
||||
add_success = false,
|
||||
t = async_test(document.title)
|
||||
t = async_test()
|
||||
|
||||
var open_rq = createdb(t);
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<script>
|
||||
var db, store,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
open_rq = createdb(t),
|
||||
stages = [];
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<script>
|
||||
var db, aborted,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
record = { indexedProperty: "bar" };
|
||||
|
||||
var open_rq = createdb(t);
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<script>
|
||||
|
||||
var db,
|
||||
t = async_test(document.title);
|
||||
t = async_test();
|
||||
|
||||
t.step(function() {
|
||||
var openrq = indexedDB.open('db', 3);
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<script>
|
||||
|
||||
var db,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
objects = [1, null, {id: 2}, null, 2.00001, 5, null, {id: 6} ],
|
||||
expected = [1, 2, 2.00001, 3, 5, 6],
|
||||
errors = 0;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<script>
|
||||
|
||||
var db,
|
||||
t = async_test(document.title),
|
||||
t = async_test(),
|
||||
overflow_error_fired = false,
|
||||
objects = [9007199254740991, null, "error", 2, "error" ],
|
||||
expected_keys = [2, 9007199254740991, 9007199254740992];
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<script>
|
||||
var events = [];
|
||||
|
||||
var open_rq = createdb(async_test(document.title));
|
||||
var open_rq = createdb(async_test());
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
var db = e.target.result;
|
||||
var txn = e.target.transaction;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
var db, db_got_versionchange, db2,
|
||||
events = [],
|
||||
t = async_test(document.title);
|
||||
t = async_test();
|
||||
|
||||
t.step(function() {
|
||||
var openrq = indexedDB.open('db', 3);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
var db, db_got_versionchange, db2,
|
||||
events = [],
|
||||
t = async_test(document.title);
|
||||
t = async_test();
|
||||
|
||||
t.step(function() {
|
||||
var openrq = indexedDB.open('db', 3);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<script>
|
||||
|
||||
var db, t = async_test(document.title),
|
||||
var db, t = async_test(),
|
||||
keys = { txn: [], txn2: [] },
|
||||
open_rq = createdb(t)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<script>
|
||||
var events = [];
|
||||
|
||||
var open_rq = createdb(async_test(document.title));
|
||||
var open_rq = createdb(async_test());
|
||||
open_rq.onupgradeneeded = function(e) {
|
||||
var db = e.target.result;
|
||||
var txn = e.target.transaction;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<div id="test"></div>
|
||||
<script type="text/javascript">
|
||||
var div = document.querySelector("#test");
|
||||
var t = async_test(document.title);
|
||||
var t = async_test();
|
||||
t.step(function () {
|
||||
div.style[headProp("border-image-repeat")] = "repeat-x";
|
||||
div.style[headProp("height")] = "200px";
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<div id=log></div>
|
||||
<div id=test></div>
|
||||
<script type="text/javascript">
|
||||
var t = async_test(document.title);
|
||||
var t = async_test();
|
||||
t.step(function () {
|
||||
assert_equals(window.getComputedStyle(document.querySelector('div#test')).display, "flex", "Display value is");
|
||||
});
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<div id=log></div>
|
||||
<div id=test></div>
|
||||
<script type="text/javascript">
|
||||
var t = async_test(document.title);
|
||||
var t = async_test();
|
||||
t.step(function () {
|
||||
assert_equals(window.getComputedStyle(document.querySelector('div#test')).display, "inline-flex", "Display value is");
|
||||
});
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<div id=log></div>
|
||||
<div id=test><div id=test01>1</div><div id=test02>2</div><div id=test03>3</div></div>
|
||||
<script type="text/javascript">
|
||||
var t = async_test(document.title);
|
||||
var t = async_test();
|
||||
t.step(function () {
|
||||
assert_equals(document.getElementById("test01").offsetTop, document.getElementById("test02").offsetTop, "Rectangle 1 and 2 have the same offsetTop value");
|
||||
assert_equals((document.getElementById("test02").offsetLeft >= document.getElementById("test01").offsetLeft), false, "Rectangle 2 have a smaller offsetLeft value than 1.");
|
||||
|
|
|
@ -20,7 +20,7 @@ Process the field using the steps described below, using the whole line as the f
|
|||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
var test = async_test(document.title);
|
||||
var test = async_test();
|
||||
test.step(function() {
|
||||
var source = new EventSource("resources/message2.py"),
|
||||
counter = 0;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
var test = async_test(document.title)
|
||||
var test = async_test()
|
||||
test.step(function() {
|
||||
var timeoutms = 3000,
|
||||
source = new EventSource("resources/message.py?message=retry%3A3000%0Aretry%3A1000x%0Adata%3Ax"),
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
var test = async_test(document.title);
|
||||
var test = async_test();
|
||||
test.step(function() {
|
||||
var timeoutms = 3000,
|
||||
timeoutstr = "03000", // 1536 in octal, but should be 3000
|
||||
|
|
|
@ -12,7 +12,7 @@ setup(function(){
|
|||
}, {timeout:10000, explicit_done:true});
|
||||
|
||||
onload = function() {
|
||||
(async_test(document.title)).step(function() {
|
||||
(async_test()).step(function() {
|
||||
// fail early if track isn't supported
|
||||
assert_true('HTMLTrackElement' in window, 'track not supported');
|
||||
window.corsMode = document.title.match(/^track CORS: (No CORS|Anonymous|Use Credentials)/)[1];
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<p>Free fall the device to run the test, with the screen horizontal and upmost.</p>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
var t = async_test(document.title);
|
||||
var t = async_test();
|
||||
var run = false;
|
||||
|
||||
/*
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<p>Put the device on a horizontal surface with the screen upmost.</p>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
var t = async_test(document.title);
|
||||
var t = async_test();
|
||||
var run = false;
|
||||
|
||||
/*
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<p>Put the device with the screen upright.</p>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
var t = async_test(document.title);
|
||||
var t = async_test();
|
||||
var run = false;
|
||||
|
||||
/*
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
var test = async_test(document.title)
|
||||
var test = async_test()
|
||||
var client = new XMLHttpRequest()
|
||||
var gotTimeout = false
|
||||
client.open("GET", "http://www2." + location.hostname + (location.port ? ":" + location.port : "") +(location.pathname.replace(/[^\/]+$/, '')+'resources/corsenabled.py')+"?delay=2&code=200")
|
||||
|
|
Загрузка…
Ссылка в новой задаче