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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/events/events-that-are-not-stopped-if-created-by-users/test-005.html

Issue 1586563005: Add Event.scoped (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modify layout test for event.scoped Created 4 years, 11 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/shadow-dom/untriaged/events/events-that-are-not-stopped-if-created-by-users/test-005.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/events/events-that-are-always-stopped/test-005.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/events/events-that-are-not-stopped-if-created-by-users/test-005.html
similarity index 84%
rename from third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/events/events-that-are-always-stopped/test-005.html
rename to third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/events/events-that-are-not-stopped-if-created-by-users/test-005.html
index ddb2eec1dba4806a70edd1a313643cc8c31a4a51..a3435deea9385454f63e66a951263376cd4f805c 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/events/events-that-are-always-stopped/test-005.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/untriaged/events/events-that-are-not-stopped-if-created-by-users/test-005.html
@@ -13,7 +13,7 @@ policies and contribution forms [3].
<title>Shadow DOM Test: A_05_04_05</title>
<link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
<link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#events-that-are-always-stopped">
-<meta name="assert" content="The following events must always be stopped at the nearest shadow boundary: abort, error, select, change, load, reset, resize, scroll, selectstart">
+<meta name="assert" content="The following events must not be stopped at the nearest shadow boundary if created by users: abort, error, select, change, load, reset, resize, scroll, selectstart">
<script src="../../../../../../resources/testharness.js"></script>
<script src="../../../../../../resources/testharnessreport.js"></script>
<script src="../../testcommon.js"></script>
@@ -43,12 +43,12 @@ A_05_04_05_T01.step(unit(function (ctx) {
s.appendChild(inp1);
s.addEventListener('load', A_05_04_05_T01.step_func(function(event) {
- assert_equals(event.target.getAttribute('id'), 'inp1', 'Inside shadoe tree: Wrong target');
+ assert_equals(event.target.getAttribute('id'), 'inp1', 'Inside shadow tree: Wrong target');
}), false);
d.body.addEventListener('load', A_05_04_05_T01.step_func(function(event) {
- assert_true(false, 'load event should always be stopped at Shadow boundary');
- }), false);
+ assert_true(true, 'Load event should not be stopped at Shadow boundary if created by users');
+ }), true);
var event = d.createEvent('UIEvent');
event.initUIEvent ('load', true, false);

Powered by Google App Engine
This is Rietveld 408576698