| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package com.bulenkov.iconloader; |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
public class IconLoaderTest extends IconLoaderTestCase { |
| 23 |
public void testSimple() throws Exception { |
| 24 |
checkIcon("/icons/print.png", false, false, "print.png"); |
| 25 |
} |
| 26 |
|
| 27 |
public void testSimpleRetina() throws Exception { |
| 28 |
checkIcon("/icons/print.png", true, false, "[email protected]"); |
| 29 |
} |
| 30 |
|
| 31 |
public void testSimpleDark() throws Exception { |
| 32 |
checkIcon("/icons/print.png", false, true, "print_dark.png"); |
| 33 |
} |
| 34 |
|
| 35 |
public void testSimpleRetinaAndDark() throws Exception { |
| 36 |
checkIcon("/icons/print.png", true, true, "print@2x_dark.png"); |
| 37 |
} |
| 38 |
|
| 39 |
public void testNoRetinaIconAvailable() throws Exception { |
| 40 |
checkIcon("/icons/printPreview.png", true, false, "printPreview.png"); |
| 41 |
} |
| 42 |
|
| 43 |
public void testNoDarkIconAvailable() throws Exception { |
| 44 |
checkIcon("/icons/printPreview.png", false, true, "printPreview.png"); |
| 45 |
} |
| 46 |
|
| 47 |
public void testNoRetinaAndDarkIconAvailable() throws Exception { |
| 48 |
checkIcon("/icons/printPreview.png", true, true, "printPreview.png"); |
| 49 |
} |
| 50 |
|
| 51 |
|
| 52 |
} |