| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
| 9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
| 10 * disclaimer. | 10 * disclaimer. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 FloatRoundedRect::Radii radiiWithTooLargeCorner(FloatSize(55, 55), FloatSize
(), FloatSize(), FloatSize()); | 172 FloatRoundedRect::Radii radiiWithTooLargeCorner(FloatSize(55, 55), FloatSize
(), FloatSize(), FloatSize()); |
| 173 FloatRoundedRect r2(FloatRect(0, 0, 100, 50), radiiWithTooLargeCorner); | 173 FloatRoundedRect r2(FloatRect(0, 0, 100, 50), radiiWithTooLargeCorner); |
| 174 EXPECT_TRUE(r2.radiusCenterRect().isEmpty()); | 174 EXPECT_TRUE(r2.radiusCenterRect().isEmpty()); |
| 175 } | 175 } |
| 176 | 176 |
| 177 TEST(FloatRoundedRectTest, ToString) | 177 TEST(FloatRoundedRectTest, ToString) |
| 178 { | 178 { |
| 179 FloatSize cornerRect(1, 2); | 179 FloatSize cornerRect(1, 2); |
| 180 FloatRoundedRect roundedRect(FloatRect(3, 5, 7, 11), FloatRoundedRect::Radii
(cornerRect, cornerRect, cornerRect, cornerRect)); | 180 FloatRoundedRect roundedRect(FloatRect(3, 5, 7, 11), FloatRoundedRect::Radii
(cornerRect, cornerRect, cornerRect, cornerRect)); |
| 181 EXPECT_EQ(String("3,5 7x11 radii:(tl:1x2; tr:1x2; bl:1x2; br:1x2)"), rounded
Rect.toString()); | 181 EXPECT_EQ("3,5 7x11 radii:(tl:1x2; tr:1x2; bl:1x2; br:1x2)", roundedRect.toS
tring()); |
| 182 } | 182 } |
| 183 | 183 |
| 184 } // namespace blink | 184 } // namespace blink |
| 185 | 185 |
| OLD | NEW |