Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-before-after-events.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-before-after-events.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-before-after-events.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-before-after-events.html
deleted file mode 100644
index d653d832b6885742a5278ebfa8d2f3da8f73895c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-before-after-events.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>script beforescriptexecute/afterscriptexecute events</title>
-<link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
-<link rel=help href="https://html.spec.whatwg.org/multipage/#the-script-element">
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-<div id="log"></div>
-<script>
- var t1 = async_test("'beforescriptexecute'/'afterscriptexecute' events have been fired"),
- t2 = async_test("default prevented 'beforescriptexecute' event aborts script execution"),
- a = false,
- b = false;
-
- var before = function(e) {
- b = true;
- test(function(){
- assert_true(e.isTrusted);
- assert_true(e.bubbles);
- assert_true(e.cancelable);
- }, "'beforescriptexecute' event is trusted, bubbles and is cancelable");
- };
-
- var after = function(e) {
- a = true;
- test(function(){
- assert_true(e.isTrusted);
- assert_true(e.bubbles);
- assert_false(e.cancelable);
- }, "'afterscriptexecute' event is trusted, bubbles and isn't cancelable");
- };
-
- var prevent_default = function(e) {
- t2.step(function() {
- e.preventDefault();
- assert_true(e.defaultPrevented);
- });
- };
-
- document.body.onload = function() {
- t1.step(function() {
- assert_true(a && b);
- });
- t1.done();
- t2.done();
- };
-</script>
-<script onbeforescriptexecute=before(event) onafterscriptexecute=after(event)>
- document.querySelector("script");
-</script>
-<script onbeforescriptexecute=prevent_default(event)>
- t2.step(function() {
- assert_unreached("script execution not aborted by default prevented 'beforescriptexecute' event");
- });
-</script>

Powered by Google App Engine
This is Rietveld 408576698