From 0dffa8a300182fe3b99022d7a6c53a31382b33c7 Mon Sep 17 00:00:00 2001 From: David Storey Date: Tue, 5 Dec 2017 17:14:09 -0800 Subject: [PATCH 1/2] Remove rejected scriptexecutionevents --- scripts/9/data.js | 23 +++++++---------------- scripts/9/engine.js | 36 ------------------------------------ 2 files changed, 7 insertions(+), 52 deletions(-) diff --git a/scripts/9/data.js b/scripts/9/data.js index 082b6adf..072fbbe7 100644 --- a/scripts/9/data.js +++ b/scripts/9/data.js @@ -1123,10 +1123,10 @@ var tests = [ urls: [ [ 'w3c', 'https://www.w3.org/TR/generic-sensor/' ] ] - }, - + }, + 'Low level sensors', - + { id: 'low.accelerometer', name: 'Accelerometer', @@ -1139,10 +1139,10 @@ var tests = [ id: 'low.magnetometer', name: 'Magnetometer', value: 0 - }, - + }, + 'High level sensors', - + { id: 'high.linearacceleration', name: 'Linear Acceleration', @@ -1159,7 +1159,7 @@ var tests = [ id: 'high.ambientlight', name: 'Ambient Light', value: 0 - }, + }, ] }, { id: 'hardware', @@ -2686,15 +2686,6 @@ var tests = [ [ 'whatwg', 'https://html.spec.whatwg.org/multipage/scripting.html#attr-script-defer' ], [ 'mdn', '/Web/HTML/Element/script' ] ] - }, { - id: 'executionevents', - name: 'Script execution events', - status: 'rejected', - urls: [ - [ 'w3c', 'http://www.w3.org/TR/html5/scripting-1.html#the-script-element' ], - [ 'whatwg', 'http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#the-script-element' ], - [ 'mdn', '/Web/Events/beforescriptexecute' ] - ] }, { id: 'onerror', name: 'Runtime script error reporting', diff --git a/scripts/9/engine.js b/scripts/9/engine.js index e3f32410..250836c6 100644 --- a/scripts/9/engine.js +++ b/scripts/9/engine.js @@ -3707,42 +3707,6 @@ Test9 = (function () { }, - /* script execution events */ - - function (results) { - var executionevents = results.addItem({ - key: 'scripting.executionevents', - passed: false - }); - - executionevents.startBackground(); - - var before = false; - - var s = document.createElement('script'); - s.src = "data:text/javascript;charset=utf-8,window" - - s.addEventListener('beforescriptexecute', function () { - before = true; - }, true); - - s.addEventListener('afterscriptexecute', function () { - if (before) { - executionevents.update({ - passed: true - }); - } - - executionevents.stopBackground(); - }, true); - - document.body.appendChild(s); - - window.setTimeout(function () { - executionevents.stopBackground(); - }, 500); - }, - /* base64 encoding and decoding */ From d8eb54310bceb5ce01427f54c573a688b105c966 Mon Sep 17 00:00:00 2001 From: David Storey Date: Tue, 5 Dec 2017 17:15:33 -0800 Subject: [PATCH 2/2] Remove rejected HTML Imports --- scripts/9/data.js | 7 ------- scripts/9/engine.js | 10 ---------- 2 files changed, 17 deletions(-) diff --git a/scripts/9/data.js b/scripts/9/data.js index 072fbbe7..06edd50f 100644 --- a/scripts/9/data.js +++ b/scripts/9/data.js @@ -1061,13 +1061,6 @@ var tests = [ [ 'w3c', 'http://www.w3.org/TR/html-templates/' ], [ 'whatwg', 'https://html.spec.whatwg.org/multipage/scripting.html#the-template-element' ] ] - }, { - id: 'imports', - name: 'HTML imports', - status: 'rejected', - urls: [ - [ 'w3c', 'http://w3c.github.io/webcomponents/spec/imports/' ] - ] } ] } diff --git a/scripts/9/engine.js b/scripts/9/engine.js index 250836c6..2e2b0125 100644 --- a/scripts/9/engine.js +++ b/scripts/9/engine.js @@ -3667,16 +3667,6 @@ Test9 = (function () { }, - /* html imports */ - - function (results) { - results.addItem({ - key: 'components.imports', - passed: 'import' in document.createElement('link') - }); - }, - - /* async scripts */ function (results) {