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

Unified Diff: LayoutTests/fast/events/clipboard-dataTransferItemList.html

Issue 23496045: Have V8Clipboard::clearDataMethodCustom() use V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/fast/events/clipboard-dataTransferItemList-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/clipboard-dataTransferItemList.html
diff --git a/LayoutTests/fast/events/clipboard-dataTransferItemList.html b/LayoutTests/fast/events/clipboard-dataTransferItemList.html
index 6ca335e5e96e30128e5e104db838da704c970a35..5698a0a65b849f81c72c522d9ac239b9d7694f7e 100644
--- a/LayoutTests/fast/events/clipboard-dataTransferItemList.html
+++ b/LayoutTests/fast/events/clipboard-dataTransferItemList.html
@@ -3,15 +3,20 @@
<head>
<script src="../js/resources/js-test-pre.js"></script>
<script>
+var testDataTransfer;
+var nonConvertibleToString = {toString: function() { throw "Exception in toString()"; }};
function legacyCopyStart(dataTransfer)
{
+ testDataTransfer = dataTransfer;
dataTransfer.setData('text', 'sample');
dataTransfer.setData('url', 'http://www.google.com/');
dataTransfer.setData('text/html', '<em>Markup</em>');
dataTransfer.setData('custom-data', 'hello world');
+ shouldBeEqualToString('testDataTransfer.getData("custom-data")', 'hello world');
+ shouldThrow('testDataTransfer.clearData(nonConvertibleToString)', '"Exception in toString()"');
+ shouldBeEqualToString('testDataTransfer.getData("custom-data")', 'hello world');
}
-var testDataTransfer;
function itemListCopyStart(dataTransfer)
{
testDataTransfer = dataTransfer;
« no previous file with comments | « no previous file | LayoutTests/fast/events/clipboard-dataTransferItemList-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698