Debian Codegraph @

tests/com/bulenkov/iconloader/IconLoaderTest.java

raw symbols SCIP
1 /*
2 * Copyright 2000-2014 JetBrains s.r.o.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package com.bulenkov.iconloader;
18
19 /**
20 * @author Konstantin Bulenkov
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 }