Bug 1480905 [wpt PR 12305] - Wrap an assert in step_func in a CSP test, a=testonly
authorPhilip Jägenstedt <philip@foolip.org>
Mon, 13 Aug 2018 18:25:41 +0000
changeset 431529 b6e9010c6387a844841891a8d7e6d7cff7c953d7
parent 431528 11cd21d2d6daa6730829412eae4e6c7302fdc7a8
child 431530 f2f7d1e29ac6ea7a1d9ae907c1f2dd65948eece1
push id34443
push usercsabou@mozilla.com
push dateWed, 15 Aug 2018 00:53:32 +0000
treeherdermozilla-central@b80906e2fbc9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1480905, 12305, 10877
milestone63.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 1480905 [wpt PR 12305] - Wrap an assert in step_func in a CSP test, a=testonly Automatic update from web-platform-testsWrap an assert in step_func in a CSP test (#12305) Previously, this test caused a harness error in Firefox and Safari, now the test itself fails correctly instead. Found via https://github.com/web-platform-tests/wpt/issues/10877#issuecomment-410348344. -- wpt-commits: 590992ecaa850723c3300417912a874d94295444 wpt-pr: 12305
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/content-security-policy/unsafe-hashes/style_attribute_allowed.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -452779,17 +452779,17 @@
    "0323dda50b7be93ffd7b77d401cd2b40f39d6cfe",
    "testharness"
   ],
   "content-security-policy/unsafe-hashes/script_event_handlers_denied_wrong_hash.html": [
    "b9b13572c3ba89738142ff54baf43541eb035071",
    "testharness"
   ],
   "content-security-policy/unsafe-hashes/style_attribute_allowed.html": [
-   "69657efda7e158179aad8ab5688e56e344a9b05d",
+   "568c469b063c0faaed83cf9551b56a3bf7d2b3d9",
    "testharness"
   ],
   "content-security-policy/unsafe-hashes/style_attribute_denied_missing_unsafe_hashes.html": [
    "66be2c3d80728f47758f08a01283df28120912dd",
    "testharness"
   ],
   "content-security-policy/unsafe-hashes/style_attribute_denied_wrong_hash.html": [
    "32ca66a8a8b8ac2c775289e07ae0f34fc55c5078",
--- a/testing/web-platform/tests/content-security-policy/unsafe-hashes/style_attribute_allowed.html
+++ b/testing/web-platform/tests/content-security-policy/unsafe-hashes/style_attribute_allowed.html
@@ -12,20 +12,19 @@
     <script src='/resources/testharnessreport.js'></script>
 </head>
 
 <body>
     <div id='log'></div>
     <script>
         var t1 = async_test("Test that the inline style attribute is loaded");
 
-        function check_for_style() {
+        self.check_for_style = t1.step_func_done(function() {
           assert_equals("green", document.getElementById('test').style.background);
-          t1.done();
-        }
+        });
 
         window.addEventListener('securitypolicyviolation', t1.unreached_func("Should have not raised any event"));
     </script>
     <img src='../support/pass.png' id='test' style='background: green'
          onload='check_for_style()'>
 </body>
 
 </html>