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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/resources/textarea-input-event.js

Issue 1522803002: Move textarea-related tests to fast/forms/textarea/, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@color-uaf
Patch Set: Created 5 years 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/fast/forms/resources/textarea-input-event.js
diff --git a/third_party/WebKit/LayoutTests/fast/forms/resources/textarea-input-event.js b/third_party/WebKit/LayoutTests/fast/forms/resources/textarea-input-event.js
deleted file mode 100644
index 3330ae8f96b610fe475a4c3e6f5a8ae086040a72..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/resources/textarea-input-event.js
+++ /dev/null
@@ -1,44 +0,0 @@
-description('Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=15189">https://bugs.webkit.org/show_bug.cgi?id=15189</a><br>');
-
-var handleTextareaOnInputCallCount = 0;
-var handleDivOnInputCallCount = 0;
-var successfullyParsed = false;
-
-function handleDivOnInput(e) {
- if (e.target !== ta) {
- testFailed('Wrong target');
- } else {
- handleDivOnInputCallCount++;
- shouldBeEqualToString('ta.value', 'x');
- }
-}
-
-function handleTextareaOnInput(e) {
- if (e.target !== ta) {
- testFailed('Wrong target');
- } else {
- handleTextareaOnInputCallCount++;
- shouldBeEqualToString('ta.value', 'x');
- }
-}
-
-var ta = document.getElementById('ta');
-ta.setAttribute('oninput', 'handleTextareaOnInput(event)');
-
-// Change the value before focusing.
-ta.value = '';
-
-ta.focus();
-
-if (window.eventSender) {
- eventSender.keyDown('x', []);
- shouldEvaluateTo('handleTextareaOnInputCallCount', 1);
- shouldEvaluateTo('handleDivOnInputCallCount', 1);
-
- // Change programmatically
- ta.value = 'programmatically';
-
- // Should not have triggered the events.
- shouldEvaluateTo('handleTextareaOnInputCallCount', 1);
- shouldEvaluateTo('handleDivOnInputCallCount', 1);
-}

Powered by Google App Engine
This is Rietveld 408576698