Skip to content

Commit 7b325d7

Browse files
committed
Restore v1 test folder from master for manual browser testing
Copies v2 IIFE builds into test/js/ so the HTML test pages work with the new code.
1 parent 3a27086 commit 7b325d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3326
-0
lines changed

test/css/test_basic.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#test-9 img.prevent-image-flash {
2+
visibility: hidden;
3+
}
4+
5+
#test-9 svg.prevent-image-flash {
6+
visibility: hidden;
7+
}
8+
9+
#test-13-1 .stop1 { stop-color: red; }
10+
#test-13-1 .stop2 { stop-color: red; }
11+
#test-13-2 .stop1 { stop-color: green; }
12+
#test-13-2 .stop2 { stop-color: green; }
13+
#test-13-3 .stop1 { stop-color: blue; }
14+
#test-13-3 .stop2 { stop-color: blue; }
15+
#test-13-4 .stop1 { stop-color: yellow; }
16+
#test-13-4 .stop2 { stop-color: yellow; }
17+
18+
#test-17 .test { color: #fff; }

test/css/test_helper.css

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#failed, #success, #running {
2+
font-size: 50px;
3+
}
4+
#failed {
5+
display: none;
6+
color: red;
7+
}
8+
9+
#success {
10+
display: none;
11+
color: green;
12+
}
13+
14+
#running {
15+
color: orange;
16+
}
17+
18+
img, svg, .test > div {
19+
width: 128px;
20+
height: 128px;
21+
}
22+
23+
.inject-success .color-1 {
24+
color: #ff0000;
25+
}
26+
27+
.inject-success .color-2 {
28+
color: #00ff00;
29+
}
30+
31+
.inject-success .color-3 {
32+
color: #0000ff;
33+
}
34+
35+
.inject-success .color-4 {
36+
color: #ffff00;
37+
}
38+
39+
.inject-fail .color-1,
40+
.inject-fail .color-2,
41+
.inject-fail .color-3,
42+
.inject-fail .color-4 {
43+
color: #000000;
44+
}
45+
46+
.inject-hide {
47+
position: absolute;
48+
left: -10000px;
49+
z-index: -1;
50+
}
51+
52+
.test::after {
53+
content: '';
54+
display: block;
55+
clear: both;
56+
}
57+
58+
.test > div {
59+
float: left;
60+
margin: 10px;
61+
background: #f0f0f0;
62+
}
63+
64+
.background_1::before {
65+
content: '';
66+
display: block;
67+
width: 128px;
68+
height: 128px;
69+
background: url(../imgs/test1.png);
70+
}
71+
72+
.background_1 > img {
73+
display: none;
74+
}
75+
76+
h3 {
77+
clear: both;
78+
}

test/css/test_performance.css

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#performance-tests {
2+
margin: 20px 20px;
3+
}
4+
5+
#header {
6+
position: relative;
7+
background: #f5f5f5;
8+
}
9+
10+
.running #tools {
11+
visibility: hidden;
12+
}
13+
14+
#running {
15+
position: absolute;
16+
align-items: center;
17+
justify-content: center;
18+
top: 0;
19+
left: 0;
20+
right: 0;
21+
bottom: 0;
22+
display: none;
23+
}
24+
25+
#render-container {
26+
position: relative;
27+
}
28+
29+
#render-container > img, #render-container > svg {
30+
margin: 20px;
31+
position: absolute;
32+
top: 0;
33+
left: 0;
34+
background: #fff;
35+
}
36+
37+
#render-container > img {
38+
visibility: hidden;
39+
}
40+
41+
.running #running {
42+
display: flex;
43+
}
44+
45+
#results svg, #results svg {
46+
width: 128px !important;
47+
height: 128px !important;
48+
}
49+
50+
.result {
51+
float: left;
52+
margin: 0 20px 20px 0;
53+
padding: 20px;
54+
background: #f5f5f5;
55+
}
56+
57+
.stats {
58+
padding: 10px 0 0;
59+
text-align: center;
60+
}
61+
62+
#tools {
63+
padding: 20px;
64+
margin: 0 0 20px;
65+
}
66+
67+
.tool {
68+
margin: 10px 0;
69+
}

test/imgs/malformed1.svg

Lines changed: 44 additions & 0 deletions
Loading

test/imgs/performance/1.svg

Lines changed: 26 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)