Index: Source/core/testing/UnionTypesTest.cpp |
diff --git a/Source/core/testing/UnionTypesTest.cpp b/Source/core/testing/UnionTypesTest.cpp |
index 4f569db7f5c48b3514275587765e428901017b36..9a5f081938e659fe055e9856929d2f092c8ae0bc 100644 |
--- a/Source/core/testing/UnionTypesTest.cpp |
+++ b/Source/core/testing/UnionTypesTest.cpp |
@@ -58,6 +58,16 @@ String UnionTypesTest::doubleOrStringArg(DoubleOrString& doubleOrString) |
return String(); |
} |
+String UnionTypesTest::doubleOrInternalEnumArg(DoubleOrInternalEnum& doubleOrInternalEnum) |
+{ |
+ if (doubleOrInternalEnum.isDouble()) |
+ return "double is passed: " + String::numberToStringECMAScript(doubleOrInternalEnum.getAsDouble()); |
+ if (doubleOrInternalEnum.isInternalEnum()) |
+ return "InternalEnum is passed: " + doubleOrInternalEnum.getAsInternalEnum(); |
+ ASSERT_NOT_REACHED(); |
+ return String(); |
+} |
+ |
String UnionTypesTest::doubleOrStringArrayArg(Vector<DoubleOrString>& array) |
{ |
if (!array.size()) |