@@ -25,86 +25,83 @@ try {
2525 QUnit . test ( 'get_highlight_themes test' , assert => {
2626 assert . notEqual ( index . get_highlight_themes ( tree ) . length , 0 , 'get_highlight_themes().length != 0' )
2727 } )
28-
29- tree = const_tree
30-
31- QUnit . test ( 'get_themes test' , assert => {
32- assert . equal ( index . get_themes ( tree ) . length , 13 , 'get_themes().length == 13' )
33- } )
34-
35- QUnit . test ( 'get_fonts test' , assert => {
36- assert . equal ( index . get_fonts ( tree ) . length , 17 , 'get_fonts().length == 17' )
37- } )
38-
39- QUnit . test ( 'get_plugins test' , assert => {
40- assert . equal ( index . get_plugins ( tree ) . length , 6 , 'get_plugins().length == 6' )
41- } )
42-
43- QUnit . test ( 'get_highlight_themes test' , assert => {
44- assert . equal ( index . get_highlight_themes ( tree ) . length , 2 , 'get_highlight_themes().length == 2' )
45- } )
46-
47- QUnit . test ( 'get_themes test' , assert => {
48- assert . deepEqual ( index . get_themes ( tree ) , [
49- "beige.css" ,
50- "black.css" ,
51- "blood.css" ,
52- "league-gothic.css" ,
53- "source-sans-pro.css" ,
54- "league.css" ,
55- "moon.css" ,
56- "night.css" ,
57- "serif.css" ,
58- "simple.css" ,
59- "sky.css" ,
60- "solarized.css" ,
61- "white.css"
62- ] , 'get_themes() list of themes' )
63- } )
64-
65- QUnit . test ( 'get_fonts test' , assert => {
66- assert . deepEqual ( index . get_fonts ( tree ) , [
67- "fonts/league-gothic/league-gothic.css" ,
68- "fonts/league-gothic/league-gothic.eot" ,
69- "fonts/league-gothic/league-gothic.ttf" ,
70- "fonts/league-gothic/league-gothic.woff" ,
71- "fonts/source-sans-pro/source-sans-pro-italic.eot" ,
72- "fonts/source-sans-pro/source-sans-pro-italic.ttf" ,
73- "fonts/source-sans-pro/source-sans-pro-italic.woff" ,
74- "fonts/source-sans-pro/source-sans-pro-regular.eot" ,
75- "fonts/source-sans-pro/source-sans-pro-regular.ttf" ,
76- "fonts/source-sans-pro/source-sans-pro-regular.woff" ,
77- "fonts/source-sans-pro/source-sans-pro-semibold.eot" ,
78- "fonts/source-sans-pro/source-sans-pro-semibold.ttf" ,
79- "fonts/source-sans-pro/source-sans-pro-semibold.woff" ,
80- "fonts/source-sans-pro/source-sans-pro-semibolditalic.eot" ,
81- "fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf" ,
82- "fonts/source-sans-pro/source-sans-pro-semibolditalic.woff" ,
83- "fonts/source-sans-pro/source-sans-pro.css"
84- ] , 'get_fonts() list of fonts' )
85- } )
86-
87- QUnit . test ( 'get_plugins test' , assert => {
88- assert . deepEqual ( index . get_plugins ( tree ) , [
89- "highlight.js" ,
90- "markdown.js" ,
91- "math.js" ,
92- "notes.js" ,
93- "search.js" ,
94- "zoom.js"
95- ] , 'get_plugins() list of plugins' )
96- } )
97-
98- QUnit . test ( 'get_highlight_themes test' , assert => {
99- assert . deepEqual ( index . get_highlight_themes ( tree ) , [
100- "monokai.css" ,
101- "zenburn.css"
102- ] , 'get_highlight_themes() list of highlight themes' )
103- } )
104-
10528}
10629catch ( err ) {
10730 console . error ( `An Error <${ err } > has occurred. Aborted testing...` )
10831}
10932
110-
33+ let tree = const_tree
34+
35+ QUnit . test ( 'get_themes test' , assert => {
36+ assert . equal ( index . get_themes ( tree ) . length , 13 , 'get_themes().length == 13' )
37+ } )
38+
39+ QUnit . test ( 'get_fonts test' , assert => {
40+ assert . equal ( index . get_fonts ( tree ) . length , 17 , 'get_fonts().length == 17' )
41+ } )
42+
43+ QUnit . test ( 'get_plugins test' , assert => {
44+ assert . equal ( index . get_plugins ( tree ) . length , 6 , 'get_plugins().length == 6' )
45+ } )
46+
47+ QUnit . test ( 'get_highlight_themes test' , assert => {
48+ assert . equal ( index . get_highlight_themes ( tree ) . length , 2 , 'get_highlight_themes().length == 2' )
49+ } )
50+
51+ QUnit . test ( 'get_themes test' , assert => {
52+ assert . deepEqual ( index . get_themes ( tree ) , [
53+ "beige.css" ,
54+ "black.css" ,
55+ "blood.css" ,
56+ "league-gothic.css" ,
57+ "source-sans-pro.css" ,
58+ "league.css" ,
59+ "moon.css" ,
60+ "night.css" ,
61+ "serif.css" ,
62+ "simple.css" ,
63+ "sky.css" ,
64+ "solarized.css" ,
65+ "white.css"
66+ ] , 'get_themes() list of themes' )
67+ } )
68+
69+ QUnit . test ( 'get_fonts test' , assert => {
70+ assert . deepEqual ( index . get_fonts ( tree ) , [
71+ "fonts/league-gothic/league-gothic.css" ,
72+ "fonts/league-gothic/league-gothic.eot" ,
73+ "fonts/league-gothic/league-gothic.ttf" ,
74+ "fonts/league-gothic/league-gothic.woff" ,
75+ "fonts/source-sans-pro/source-sans-pro-italic.eot" ,
76+ "fonts/source-sans-pro/source-sans-pro-italic.ttf" ,
77+ "fonts/source-sans-pro/source-sans-pro-italic.woff" ,
78+ "fonts/source-sans-pro/source-sans-pro-regular.eot" ,
79+ "fonts/source-sans-pro/source-sans-pro-regular.ttf" ,
80+ "fonts/source-sans-pro/source-sans-pro-regular.woff" ,
81+ "fonts/source-sans-pro/source-sans-pro-semibold.eot" ,
82+ "fonts/source-sans-pro/source-sans-pro-semibold.ttf" ,
83+ "fonts/source-sans-pro/source-sans-pro-semibold.woff" ,
84+ "fonts/source-sans-pro/source-sans-pro-semibolditalic.eot" ,
85+ "fonts/source-sans-pro/source-sans-pro-semibolditalic.ttf" ,
86+ "fonts/source-sans-pro/source-sans-pro-semibolditalic.woff" ,
87+ "fonts/source-sans-pro/source-sans-pro.css"
88+ ] , 'get_fonts() list of fonts' )
89+ } )
90+
91+ QUnit . test ( 'get_plugins test' , assert => {
92+ assert . deepEqual ( index . get_plugins ( tree ) , [
93+ "highlight.js" ,
94+ "markdown.js" ,
95+ "math.js" ,
96+ "notes.js" ,
97+ "search.js" ,
98+ "zoom.js"
99+ ] , 'get_plugins() list of plugins' )
100+ } )
101+
102+ QUnit . test ( 'get_highlight_themes test' , assert => {
103+ assert . deepEqual ( index . get_highlight_themes ( tree ) , [
104+ "monokai.css" ,
105+ "zenburn.css"
106+ ] , 'get_highlight_themes() list of highlight themes' )
107+ } )
0 commit comments