OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #include "SkParse.h" | 9 #include "SkParse.h" |
11 | 10 |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 result = SK_ColorBLACK; | 529 result = SK_ColorBLACK; |
531 SkASSERT(FindColor("#123", &result)); | 530 SkASSERT(FindColor("#123", &result)); |
532 SkASSERT(result == 0Xff112233); | 531 SkASSERT(result == 0Xff112233); |
533 SkASSERT(FindColor("#abcd", &result)); | 532 SkASSERT(FindColor("#abcd", &result)); |
534 SkASSERT(result == 0Xaabbccdd); | 533 SkASSERT(result == 0Xaabbccdd); |
535 result = SK_ColorBLACK; | 534 result = SK_ColorBLACK; |
536 // SkASSERT(FindColor("71,162,253", &result)); | 535 // SkASSERT(FindColor("71,162,253", &result)); |
537 // SkASSERT(result == ((0xFF << 24) | (71 << 16) | (162 << 8) | (253 << 0))); | 536 // SkASSERT(result == ((0xFF << 24) | (71 << 16) | (162 << 8) | (253 << 0))); |
538 } | 537 } |
539 #endif | 538 #endif |
OLD | NEW |