summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/document-policy/experimental-features/resources/sync-script-test.js
blob: 65c1b21e6e8274dc06679a67c79a67dc1ba756c4 (plain)
1
2
3
4
5
6
7
8
9
var t = async_test('Test behavior of sync-script feature policy for different script types');

window.onload = t.step_func(function() {
  assert_equals(undefined, window.didExecuteInlineParsingBlockingScript, 'inline parser blocking script should be blocked');
  assert_equals(undefined, window.didExecuteExternalParsingBlockingScript, 'external parser blocking script should be blocked');
  assert_true(window.didExecuteExternalAsyncScript, 'external async script should not be blocked');
  assert_true(window.didExecuteExternalDeferredScript, 'external defer script should not be blocked');
  t.done();
});