Index: third_party/WebKit/Source/core/html/parser/HTMLParserIdiomsTest.cpp |
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserIdiomsTest.cpp b/third_party/WebKit/Source/core/html/parser/HTMLParserIdiomsTest.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1bb5f2e7fdaf63353b77d9c795bd5e57ef08d18b |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLParserIdiomsTest.cpp |
@@ -0,0 +1,21 @@ |
+// Copyright 2016 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. |
+ |
+#include "core/html/parser/HTMLParserIdioms.h" |
+ |
+#include "testing/gtest/include/gtest/gtest.h" |
+ |
+namespace blink { |
+ |
+namespace { |
+ |
+TEST(HTMLParserIdiomsTest, ParseHTMLListOfFloatingPointNumbers_null) |
+{ |
+ Vector<double> numbers = parseHTMLListOfFloatingPointNumbers(nullAtom); |
+ EXPECT_EQ(numbers.size(), 0u); |
tkent
2016/02/16 00:00:35
The argument order of EXPECT_EQ is:
expected val
|
+} |
+ |
+} // namespace |
+ |
+} // namespace blink |