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

Unified Diff: LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html

Issue 1188583004: update-w3c-deps import using blink 9d3793ee56e5bb1aa1eef078d848e1b0e6e4d355: (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html
diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html b/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html
index 6490da7c360ebd6800d612a182370cb2c567027e..93aacc3f8f4bc10e948f34728dda10f2d8afecbe 100644
--- a/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html
@@ -33,9 +33,6 @@
]
elements.forEach(function(element) {
- var t = async_test(element.id + " setRangeText fires a select event"),
- q = false;
-
test(function() {
element.value = "foobar";
element.selectionStart = 0;
@@ -108,13 +105,16 @@
});
}, element.id + " setRangeText without argument throws a type error");
- element.onselect = t.step_func_done(function(e) {
+ async_test(function() {
+ var q = false;
+ element.onselect = this.step_func_done(function(e) {
assert_true(q, "event should be queued");
assert_true(e.isTrusted, "event is trusted");
assert_false(e.bubbles, "event bubbles");
assert_false(e.cancelable, "event is not cancelable");
- });
- element.setRangeText("foobar2", 0, 6);
- q=true;
+ });
+ element.setRangeText("foobar2", 0, 6);
+ q = true;
+ }, element.id + " setRangeText fires a select event");
})
</script>

Powered by Google App Engine
This is Rietveld 408576698