Index: third_party/WebKit/Source/web/tests/WebRangeTest.cpp |
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableNeutralTest.cpp b/third_party/WebKit/Source/web/tests/WebRangeTest.cpp |
similarity index 84% |
copy from third_party/WebKit/Source/core/animation/animatable/AnimatableNeutralTest.cpp |
copy to third_party/WebKit/Source/web/tests/WebRangeTest.cpp |
index b9f85c3d0d0c01da09afe26409230fdd8ee15d26..9bffda58fe598631eece27e850a74d9c15a6b0cd 100644 |
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableNeutralTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/WebRangeTest.cpp |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (c) 2013, Google Inc. All rights reserved. |
+ * Copyright (C) 2017 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -28,14 +28,20 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#include "core/animation/animatable/AnimatableNeutral.h" |
+#include "public/web/WebRange.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace blink { |
-TEST(AnimationAnimatableNeutralTest, Create) { |
- EXPECT_TRUE(AnimatableValue::neutralValue()); |
+TEST(WebRangeTest, Empty) { |
+ WebRange empty1(0, 0); |
+ EXPECT_FALSE(empty1.isNull()); |
+ EXPECT_TRUE(empty1.isEmpty()); |
+ |
+ WebRange empty2(57, 0); |
+ EXPECT_FALSE(empty2.isNull()); |
+ EXPECT_TRUE(empty2.isEmpty()); |
} |
} // namespace blink |