OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/dom/DOMMatrix.h" | 5 #include "core/geometry/DOMMatrix.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
8 #include "bindings/core/v8/V8BindingForTesting.h" | 8 #include "bindings/core/v8/V8BindingForTesting.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 TEST(DOMMatrixTest, Fixup) { | 13 TEST(DOMMatrixTest, Fixup) { |
14 V8TestingScope scope; | 14 V8TestingScope scope; |
15 DOMMatrixInit init; | 15 DOMMatrixInit init; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 { | 142 { |
143 DOMMatrixInit init; | 143 DOMMatrixInit init; |
144 init.setF(1.0); | 144 init.setF(1.0); |
145 init.setM42(2.0); | 145 init.setM42(2.0); |
146 DOMMatrix::fromMatrix(init, scope.getExceptionState()); | 146 DOMMatrix::fromMatrix(init, scope.getExceptionState()); |
147 EXPECT_TRUE(scope.getExceptionState().hadException()); | 147 EXPECT_TRUE(scope.getExceptionState().hadException()); |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 } // namespace blink | 151 } // namespace blink |
OLD | NEW |