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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/eventlisteneroptions/capture_default.html

Issue 2123803002: Remove EventListenerOptions LayoutTests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Real CL for review Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/eventlisteneroptions/capture_equality.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/eventlisteneroptions/capture_default.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/eventlisteneroptions/capture_default.html b/third_party/WebKit/LayoutTests/fast/events/eventlisteneroptions/capture_default.html
deleted file mode 100644
index 4a2e1ac12aff4e7a355f67d4689098b7c40e2580..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/eventlisteneroptions/capture_default.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML>
-<body/>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-
-<script>
-
-function testCaptureValue(captureValue, expectedValue, test) {
- var handlerPhase = undefined;
- var handler = function handler(e) {
- assert_equals(handlerPhase, undefined);
- handlerPhase = e.eventPhase;
- }
- document.addEventListener('test', handler, captureValue);
- document.body.dispatchEvent(new Event('test', {'bubbles': true}));
- document.removeEventListener('test', handler, captureValue);
- document.body.dispatchEvent(new Event('test', {'bubbles': true}));
- assert_equals(handlerPhase, expectedValue);
- test.done();
-}
-
-test(function(t) { testCaptureValue(true, Event.CAPTURING_PHASE, t); }, "True value");
-test(function(t) { testCaptureValue(false, Event.BUBBLING_PHASE, t); }, "False value");
-test(function(t) { testCaptureValue({}, Event.BUBBLING_PHASE, t); }, "Empty object");
-test(function(t) { testCaptureValue(null, Event.BUBBLING_PHASE, t); }, "Null object");
-test(function(t) { testCaptureValue(undefined, Event.BUBBLING_PHASE, t); }, "Undefined object");
-test(function(t) { testCaptureValue(2.3, Event.CAPTURING_PHASE, t); }, "Positive value");
-test(function(t) { testCaptureValue(-1000.3, Event.CAPTURING_PHASE, t); }, "Negative value");
-test(function(t) { testCaptureValue(NaN, Event.BUBBLING_PHASE, t); }, "NaN value");
-test(function(t) { testCaptureValue(+0.0, Event.BUBBLING_PHASE, t); }, "Postive zero value");
-test(function(t) { testCaptureValue(-0.0, Event.BUBBLING_PHASE, t); }, "Negative zero value");
-test(function(t) { testCaptureValue("", Event.BUBBLING_PHASE, t); }, "Empty string value");
-test(function(t) { testCaptureValue("AAAA", Event.CAPTURING_PHASE, t); }, "Non empty string value");
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/eventlisteneroptions/capture_equality.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698