| OLD | NEW | 
|   1 /* |   1 /* | 
|   2  * Copyright (c) 2013, Google Inc. All rights reserved. |   2  * Copyright (c) 2013, Google Inc. 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 are |   5  * modification, are permitted provided that the following conditions are | 
|   6  * met: |   6  * met: | 
|   7  * |   7  * | 
|   8  *     * Redistributions of source code must retain the above copyright |   8  *     * Redistributions of source code must retain the above copyright | 
|   9  * notice, this list of conditions and the following disclaimer. |   9  * notice, this list of conditions and the following disclaimer. | 
|  10  *     * Redistributions in binary form must reproduce the above |  10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
|  41     RefPtr<SVGDashArray> list = SVGDashArray::create(); |  41     RefPtr<SVGDashArray> list = SVGDashArray::create(); | 
|  42     for (size_t i = 0; i < length; ++i) |  42     for (size_t i = 0; i < length; ++i) | 
|  43         list->append(Length(Fixed)); |  43         list->append(Length(Fixed)); | 
|  44     return list.release(); |  44     return list.release(); | 
|  45 } |  45 } | 
|  46  |  46  | 
|  47 TEST(AnimationAnimatableStrokeDasharrayListTest, EqualTo) |  47 TEST(AnimationAnimatableStrokeDasharrayListTest, EqualTo) | 
|  48 { |  48 { | 
|  49     RefPtr<SVGDashArray> svgListA = createSVGDashArray(4); |  49     RefPtr<SVGDashArray> svgListA = createSVGDashArray(4); | 
|  50     RefPtr<SVGDashArray> svgListB = createSVGDashArray(4); |  50     RefPtr<SVGDashArray> svgListB = createSVGDashArray(4); | 
|  51     RefPtrWillBeRawPtr<AnimatableStrokeDasharrayList> listA = AnimatableStrokeDa
    sharrayList::create(svgListA, 1); |  51     RefPtr<AnimatableStrokeDasharrayList> listA = AnimatableStrokeDasharrayList:
    :create(svgListA, 1); | 
|  52     RefPtrWillBeRawPtr<AnimatableStrokeDasharrayList> listB = AnimatableStrokeDa
    sharrayList::create(svgListB, 1); |  52     RefPtr<AnimatableStrokeDasharrayList> listB = AnimatableStrokeDasharrayList:
    :create(svgListB, 1); | 
|  53     EXPECT_TRUE(listA->equals(listB.get())); |  53     EXPECT_TRUE(listA->equals(listB.get())); | 
|  54  |  54  | 
|  55     svgListB->at(3) = Length(50, Fixed); |  55     svgListB->at(3) = Length(50, Fixed); | 
|  56     listB = AnimatableStrokeDasharrayList::create(svgListB, 1); |  56     listB = AnimatableStrokeDasharrayList::create(svgListB, 1); | 
|  57     EXPECT_FALSE(listA->equals(listB.get())); |  57     EXPECT_FALSE(listA->equals(listB.get())); | 
|  58  |  58  | 
|  59     svgListB = createSVGDashArray(5); |  59     svgListB = createSVGDashArray(5); | 
|  60     listB = AnimatableStrokeDasharrayList::create(svgListB, 1); |  60     listB = AnimatableStrokeDasharrayList::create(svgListB, 1); | 
|  61     EXPECT_FALSE(listA->equals(listB.get())); |  61     EXPECT_FALSE(listA->equals(listB.get())); | 
|  62 } |  62 } | 
|  63  |  63  | 
|  64 } // namespace blink |  64 } // namespace blink | 
| OLD | NEW |