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

Unified Diff: Source/core/testing/DictionaryTest.cpp

Issue 966643002: Add [TypeChecking=Unrestricted] to InternalDictionary (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix test expectations Created 5 years, 10 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 | « Source/core/testing/DictionaryTest.h ('k') | Source/core/testing/InternalDictionary.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/DictionaryTest.cpp
diff --git a/Source/core/testing/DictionaryTest.cpp b/Source/core/testing/DictionaryTest.cpp
index a4a8217a01efd20e2ee2908678f0e24642761447..19dac4dcea9d88f94946f59f9a61fc6c2f97310d 100644
--- a/Source/core/testing/DictionaryTest.cpp
+++ b/Source/core/testing/DictionaryTest.cpp
@@ -38,6 +38,8 @@ void DictionaryTest::set(const InternalDictionary& testingDictionary)
m_booleanMember = testingDictionary.booleanMember();
if (testingDictionary.hasDoubleMember())
m_doubleMember = testingDictionary.doubleMember();
+ if (testingDictionary.hasUnrestrictedDoubleMember())
+ m_unrestrictedDoubleMember = testingDictionary.unrestrictedDoubleMember();
m_stringMember = testingDictionary.stringMember();
m_stringMemberWithDefault = testingDictionary.stringMemberWithDefault();
m_byteStringMember = testingDictionary.byteStringMember();
@@ -77,6 +79,8 @@ void DictionaryTest::get(InternalDictionary& result)
result.setBooleanMember(m_booleanMember.get());
if (m_doubleMember)
result.setDoubleMember(m_doubleMember.get());
+ if (m_unrestrictedDoubleMember)
+ result.setUnrestrictedDoubleMember(m_unrestrictedDoubleMember.get());
result.setStringMember(m_stringMember);
result.setStringMemberWithDefault(m_stringMemberWithDefault);
result.setByteStringMember(m_byteStringMember);
@@ -124,6 +128,7 @@ void DictionaryTest::reset()
m_longOrNullMemberWithDefault = nullptr;
m_booleanMember = nullptr;
m_doubleMember = nullptr;
+ m_unrestrictedDoubleMember = nullptr;
m_stringMember = String();
m_stringMemberWithDefault = String("Should not be returned");
m_stringSequenceMember = nullptr;
« no previous file with comments | « Source/core/testing/DictionaryTest.h ('k') | Source/core/testing/InternalDictionary.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698