Bug 1621878 [wpt PR 22210] - [Import Maps] Remove jest-test-helper.js from lint.whitelist, a=testonly
authorHiroshige Hayashizaki <hiroshige@chromium.org>
Sat, 14 Mar 2020 11:29:04 +0000
changeset 518846 e85e41f692f34655ac8eb51ce5ad6e35374aacab
parent 518845 c3cbc7e54ed417161a92817330b940e266fc4aaf
child 518847 983fded10d593b792e433f95b6c778e742608daa
push id37217
push userccoroiu@mozilla.com
push dateSun, 15 Mar 2020 21:37:59 +0000
treeherdermozilla-central@f9fc9427476e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1621878, 22210, 2094383, 848607, 2100247, 750075
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1621878 [wpt PR 22210] - [Import Maps] Remove jest-test-helper.js from lint.whitelist, a=testonly Automatic update from web-platform-tests [Import Maps] Remove jest-test-helper.js from lint.whitelist Follow-up of https://chromium-review.googlesource.com/c/chromium/src/+/2094383/ that removes jest-test-helper.js. Bug: 848607 Change-Id: I5bfd5329046c796b7e47c822340a3235f6e29eed Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2100247 Reviewed-by: Domenic Denicola <domenic@chromium.org> Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Cr-Commit-Position: refs/heads/master@{#750075} -- wpt-commits: eea4d73bfb8a2094839faad178b528107e455785 wpt-pr: 22210
testing/web-platform/tests/generic-sensor/generic-sensor-feature-policy-test.sub.js
testing/web-platform/tests/lint.whitelist
--- a/testing/web-platform/tests/generic-sensor/generic-sensor-feature-policy-test.sub.js
+++ b/testing/web-platform/tests/generic-sensor/generic-sensor-feature-policy-test.sub.js
@@ -49,17 +49,16 @@ function run_fp_tests_disabled(sensorNam
       t,
       cross_origin_src + sensorName,
       expect_feature_unavailable_default
     );
   }, `${sensorName}: ${header} disallows cross-origin iframes.`);
 }
 
 function run_fp_tests_enabled(sensorName) {
-  const sensorType = self[sensorName];
   const featureNameList = feature_policies[sensorName];
   const header = "Feature-Policy header " + featureNameList.join(" *;") + " *";
   const desc = "'new " + sensorName + "()'";
 
   test(() => {
     assert_true(sensorName in self);
   }, `${sensorName}: ${header} allows the top-level document.`);
 
@@ -80,17 +79,16 @@ function run_fp_tests_enabled(sensorName
       t,
       cross_origin_src + sensorName,
       expect_feature_available_default
     );
   }, `${sensorName}: ${header} allows cross-origin iframes.`);
 }
 
 function run_fp_tests_enabled_by_attribute(sensorName) {
-  const sensorType = self[sensorName];
   const featureNameList = feature_policies[sensorName];
   const header = "Feature-Policy allow='" + featureNameList.join(" ") + "' attribute";
   const desc = "'new " + sensorName + "()'";
 
   async_test(t => {
     assert_true(sensorName in self);
     test_feature_availability(
       desc,
@@ -109,17 +107,16 @@ function run_fp_tests_enabled_by_attribu
       cross_origin_src + sensorName,
       expect_feature_available_default,
       featureNameList.join(";")
     );
   }, `${sensorName}: ${header} allows cross-origin iframe`);
 }
 
 function run_fp_tests_enabled_by_attribute_redirect_on_load(sensorName) {
-  const sensorType = self[sensorName];
   const featureNameList = feature_policies[sensorName];
   const header = "Feature-Policy allow='" + featureNameList.join(" ") + "' attribute";
   const desc = "'new " + sensorName + "()'";
 
   async_test(t => {
     assert_true(sensorName in self);
     test_feature_availability(
       desc,
@@ -138,17 +135,16 @@ function run_fp_tests_enabled_by_attribu
       base_src + cross_origin_src + sensorName,
       expect_feature_unavailable_default,
       featureNameList.join(";")
     );
   }, `${sensorName}: ${header} disallows cross-origin relocation`);
 }
 
 function run_fp_tests_enabled_on_self_origin(sensorName) {
-  const sensorType = self[sensorName];
   const featureNameList = feature_policies[sensorName];
   const header = "Feature-Policy header " + featureNameList.join(" 'self';") + " 'self'";
   const desc = "'new " + sensorName + "()'";
 
   test(() => {
     assert_true(sensorName in self);
   }, `${sensorName}: ${header} allows the top-level document.`);
 
--- a/testing/web-platform/tests/lint.whitelist
+++ b/testing/web-platform/tests/lint.whitelist
@@ -662,17 +662,16 @@ MISSING-LINK: css/cssom-view/scrollIntoV
 MISSING-LINK: css/cssom-view/scrollIntoView-smooth.html
 MISSING-LINK: css/cssom-view/scrollTop-display-change.html
 
 # TODO https://github.com/web-platform-tests/wpt/issues/5770
 MISSING-LINK: css/geometry/*.worker.js
 MISSING-LINK: css/filter-effects/*.any.js
 
 # Tests that use WebKit/Blink testing APIs
-LAYOUTTESTS APIS: import-maps/resources/jest-test-helper.js
 LAYOUTTESTS APIS: import-maps/common/resources/common-test-helper.js
 LAYOUTTESTS APIS: resources/chromium/enable-hyperlink-auditing.js
 LAYOUTTESTS APIS: resources/chromium/generic_sensor_mocks.js
 LAYOUTTESTS APIS: resources/chromium/nfc-mock.js
 LAYOUTTESTS APIS: resources/chromium/webxr-test.js
 LAYOUTTESTS APIS: web-nfc/NDEFReader-document-hidden-manual.https.html
 LAYOUTTESTS APIS: web-nfc/NDEFReader_scan.https.html
 LAYOUTTESTS APIS: web-nfc/NDEFWriter_write.https.html