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

Unified Diff: third_party/WebKit/Source/core/testing/SequenceTest.idl

Issue 2810843002: bindings: Make the sequence conversion code more complaint with WebIDL. (Closed)
Patch Set: Adjust even more tests Created 3 years, 8 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: third_party/WebKit/Source/core/testing/SequenceTest.idl
diff --git a/third_party/WebKit/Source/core/testing/SequenceTest.idl b/third_party/WebKit/Source/core/testing/SequenceTest.idl
new file mode 100644
index 0000000000000000000000000000000000000000..c0d5e5dd8f508ef2e9b7d417aba2c9004588ba2d
--- /dev/null
+++ b/third_party/WebKit/Source/core/testing/SequenceTest.idl
@@ -0,0 +1,24 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+enum FoodEnum {
+ "Bread",
+ "Spaghetti",
+ "Sushi"
+};
+
+interface SequenceTest {
+ // The identity functions just return what they have received in |arg|, to
+ // test converting both to and from V8.
+ sequence<sequence<ByteString>> identityByteStringSequenceSequence(sequence<sequence<ByteString>> arg);
+ sequence<double> identityDoubleSequence(sequence<double> arg);
+ sequence<FoodEnum> identityFoodEnumSequence(sequence<FoodEnum> arg);
+ sequence<long> identityLongSequence(sequence<long> arg);
+ sequence<octet>? identityOctetSequenceOrNull(sequence<octet>? arg);
+
+ sequence<Element> getElementSequence();
+ void setElementSequence(sequence<Element> arg);
+
+ bool unionReceivedSequence((double or sequence<double>) arg);
+};
« no previous file with comments | « third_party/WebKit/Source/core/testing/SequenceTest.cpp ('k') | third_party/WebKit/Source/modules/cachestorage/Cache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698