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

Unified Diff: LayoutTests/editing/pasteboard/set_data_typeof_return.html

Issue 339533002: setData() of DataTransfer has a void return type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed unnecessary argument. Created 6 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
« no previous file with comments | « no previous file | LayoutTests/editing/pasteboard/set_data_typeof_return-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/pasteboard/set_data_typeof_return.html
diff --git a/LayoutTests/editing/pasteboard/set_data_typeof_return.html b/LayoutTests/editing/pasteboard/set_data_typeof_return.html
new file mode 100644
index 0000000000000000000000000000000000000000..b49fcbc3fd78c5ae83ab4204b12e153b9b3cc372
--- /dev/null
+++ b/LayoutTests/editing/pasteboard/set_data_typeof_return.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script src="../../resources/js-test.js"></script>
+<script>
+function setDataTest() {
+ shouldBeUndefined("event.clipboardData.setData('text/plain', 'copy test')");
+}
+</script>
+</head>
+<body oncopy="setDataTest()">
+<script>
+description("Simple test to validate the return type of setData(). To run the test manually, simply select any text and initiate a copy operation.");
+
+document.execCommand("copy");
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/editing/pasteboard/set_data_typeof_return-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698