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> |