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

Unified Diff: LayoutTests/fast/events/clipboard-dataTransferItemList-remove-expected.txt

Issue 23051003: Add support for DataTransferItemList.remove() method (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/fast/events/clipboard-dataTransferItemList-remove-expected.txt
diff --git a/LayoutTests/fast/events/clipboard-dataTransferItemList-remove-expected.txt b/LayoutTests/fast/events/clipboard-dataTransferItemList-remove-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..42151c984538dc714ae04be3defc728f32889bd5
--- /dev/null
+++ b/LayoutTests/fast/events/clipboard-dataTransferItemList-remove-expected.txt
@@ -0,0 +1,31 @@
+Checks that DataTransferItemList.remove() is working
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+* copy event
+PASS dataTansferItemList.length is 4
+PASS dataTansferItemList[0].type is "text/plain"
+PASS dataTansferItemList[1].type is "text/uri-list"
+PASS dataTansferItemList[2].type is "text/html"
+PASS dataTansferItemList[3].type is "custom-data"
+PASS dataTansferItemList.remove() threw exception TypeError: Not enough arguments.
+PASS dataTansferItemList.remove(-1) did not throw exception.
+PASS dataTansferItemList.length is 4
+PASS dataTansferItemList.remove(999) did not throw exception.
+PASS dataTansferItemList.length is 4
+PASS dataTansferItemList.remove(0) did not throw exception.
+PASS dataTansferItemList.length is 3
+PASS dataTansferItemList[0].type is "text/uri-list"
+PASS dataTansferItemList[1].type is "text/html"
+PASS dataTansferItemList.remove(-4294967295) did not throw exception.
+PASS dataTansferItemList.length is 2
+PASS dataTansferItemList[1].type is "custom-data"
+* paste event
+PASS dataTansferItemList.length is 2
+PASS dataTansferItemList.remove(0) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS dataTansferItemList.length is 2
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698