зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1824751 [wpt PR 39215] - [FLEDGE] Add "use strict" to FLEDGE WPT tests' JS scripts., a=testonly
Automatic update from web-platform-tests [FLEDGE] Add "use strict" to FLEDGE WPT tests' JS scripts. The tests are already written in a strict manner, so this just requires adding the "use strict" directive. This does not add the directive to bidding or scoring scripts, just to renderer scripts. Since bidding and scoring scripts use generated JS, unclear if it's worth using the directive on them, though all generated scripts currently don't actually declare any variables, so should be fine with it. Bug: 1425952 Change-Id: Ie4e0cf3930ed2e95936ef64c96cc6626c258a992 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4368335 Reviewed-by: Maks Orlovich <morlovich@chromium.org> Commit-Queue: Matt Menke <mmenke@chromium.org> Cr-Commit-Position: refs/heads/main@{#1122386} -- wpt-commits: a99d6a9854b7cf16903e860df49db93520de4e4e wpt-pr: 39215
This commit is contained in:
Родитель
d7f5bc1a90
Коммит
a35b63e5dd
|
@ -2,6 +2,8 @@
|
|||
// META: script=/common/utils.js
|
||||
// META: script=resources/fledge-util.js
|
||||
|
||||
"use strict;"
|
||||
|
||||
// These tests are focused on joinAdInterestGroup() and leaveAdInterestGroup().
|
||||
// Most join tests do not run auctions, but instead only check the result of
|
||||
// the returned promise, since testing that interest groups are actually
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
// META: script=resources/fledge-util.js
|
||||
// META: timeout=long
|
||||
|
||||
"use strict;"
|
||||
|
||||
// The tests in this file focus on simple auctions (one bidder, one seller, one
|
||||
// origin, one frame) which have no winning bid, either due to errors or due to
|
||||
// there being no bids, except where tests fit better with another set of tests.
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
// META: script=resources/fledge-util.js
|
||||
// META: timeout=long
|
||||
|
||||
"use strict;"
|
||||
|
||||
promise_test(async test => {
|
||||
const uuid = generateUuid(test);
|
||||
await runReportTest(
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
// META: script=resources/fledge-util.js
|
||||
// META: timeout=long
|
||||
|
||||
"use strict;"
|
||||
|
||||
// Simplified version of reportTest() for validating arguments to reporting
|
||||
// methods. Only takes expressions to check in reporting methods. "uuid" is
|
||||
// optional, and one is generated if not passed one.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
"use strict;"
|
||||
|
||||
const FULL_URL = window.location.href;
|
||||
const BASE_URL = FULL_URL.substring(0, FULL_URL.lastIndexOf('/') + 1);
|
||||
const BASE_PATH = (new URL(BASE_URL)).pathname;
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
// META: script=resources/fledge-util.js
|
||||
// META: timeout=long
|
||||
|
||||
"use strict;"
|
||||
|
||||
promise_test(async test => {
|
||||
const uuid = generateUuid(test);
|
||||
await runReportTest(
|
||||
|
|
Загрузка…
Ссылка в новой задаче