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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html

Issue 2001493002: Update union conversion algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html b/third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html
index f983d4cf8dcd3b0f18f4767bddf0d466318c9f35..0bcba685feb59baaa57df7ff4e2f035a4713b0a1 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest.html
@@ -145,5 +145,19 @@ if (window.internals) {
shouldBeEqualToString('unionTypesTest.doubleOrStringOrStringSequenceNullableArg([])', 'sequence: []');
shouldBeEqualToString('unionTypesTest.doubleOrStringOrStringSequenceNullableArg(["a", 3.14])', 'sequence: [a, 3.14]');
shouldBeEqualToString('unionTypesTest.doubleOrStringOrStringSequenceNullableArg(new Array(3))', 'sequence: [undefined, undefined, undefined]');
+ debug('');
+
+ debug('Tests for distingushing sequence<T> and dictionary');
+ // An object is converted to dictionary.
+ shouldBeEqualToString('unionTypesTest.internalDictionaryOrStringSequenceArg({})', 'InternalDictionary');
+ // null and undefined are also converted to dictionary.
+ shouldBeEqualToString('unionTypesTest.internalDictionaryOrStringSequenceArg(null)', 'InternalDictionary');
+ shouldBeEqualToString('unionTypesTest.internalDictionaryOrStringSequenceArg(undefined)', 'InternalDictionary');
+ shouldBeEqualToString('unionTypesTest.internalDictionaryOrStringSequenceArg(["a", "b", "c"])', 'sequence<DOMString>');
}
</script>
+
bashi 2016/05/20 06:44:16 I'll remove blank lines.
+
+
+
+
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/idl-union-type-unittest-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698