You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'converts old JS annotations into new format': function(test){
28
-
//arrange
29
-
//act
30
-
varannotations=ae.gatherJS();
31
-
32
-
//assert
33
-
test.equals(annotations.length,2);
34
-
test.equals(annotations[1].el,'.logo');
35
-
test.equals(annotations[1].title,'Logo');
36
-
test.equals(annotations[1].comment,"The logo image is an SVG file, which ensures that the logo displays crisply even on high resolution displays. A PNG fallback is provided for browsers that don't support SVG images.</p><p>Further reading: <a href=\"http://bradfrostweb.com/blog/mobile/hi-res-optimization/\">Optimizing Web Experiences for High Resolution Screens</a></p>");
37
-
38
-
test.done();
39
-
},
40
-
41
-
'converts new markdown annotations into an array': function(test){
42
-
//arrange
43
-
//act
44
-
varannotations=ae.gatherMD();
45
-
46
-
//assert
47
-
test.equals(annotations.length,3);
48
-
test.equals(annotations[1].el,'.logo');
49
-
test.equals(annotations[1].title,'Logo');
50
-
test.equals(annotations[1].comment.replace(/\r?\n|\r/gm,""),'<p>The <em>logo image</em> is an SVG file.</p>');
51
-
52
-
test.done();
53
-
},
54
-
55
-
'merges both annotation methods into one array' : function(test){
56
-
//arrange
57
-
58
-
//act
59
-
varannotations=ae.gather();
60
-
61
-
//assert
62
-
test.equals(annotations.length,3);
63
-
test.equals(annotations[2].el,'#nav');
64
-
test.equals(annotations[2].title,'Navigation');
65
-
test.equals(annotations[2].comment.replace(/\r?\n|\r/gm,""),'<p>Navigation for adaptive web experiences can be tricky. Refer to <a href="https://bradfrost.github.io/this-is-responsive/patterns.html#navigation">these repsonsive patterns</a> when evaluating solutions.</p>');
66
-
67
-
test.done();
68
-
69
-
},
70
-
71
-
'when there are 0 annotation files' : function(test){
tap.test('converts old JS annotations into new format',function(test){
26
+
//arrange
27
+
//act
28
+
varannotations=ae.gatherJS();
29
+
30
+
//assert
31
+
test.equals(annotations.length,2);
32
+
test.equals(annotations[1].el,'.logo');
33
+
test.equals(annotations[1].title,'Logo');
34
+
test.equals(annotations[1].comment,"The logo image is an SVG file, which ensures that the logo displays crisply even on high resolution displays. A PNG fallback is provided for browsers that don't support SVG images.</p><p>Further reading: <a href=\"http://bradfrostweb.com/blog/mobile/hi-res-optimization/\">Optimizing Web Experiences for High Resolution Screens</a></p>");
35
+
36
+
test.end();
37
+
});
38
+
39
+
tap.test('converts new markdown annotations into an array',function(test){
40
+
//arrange
41
+
//act
42
+
varannotations=ae.gatherMD();
43
+
44
+
//assert
45
+
test.equals(annotations.length,3);
46
+
test.equals(annotations[1].el,'.logo');
47
+
test.equals(annotations[1].title,'Logo');
48
+
test.equals(annotations[1].comment.replace(/\r?\n|\r/gm,""),'<p>The <em>logo image</em> is an SVG file.</p>');
49
+
50
+
test.end();
51
+
});
52
+
53
+
tap.test('merges both annotation methods into one array',function(test){
54
+
//arrange
55
+
56
+
//act
57
+
varannotations=ae.gather();
58
+
59
+
//assert
60
+
test.equals(annotations.length,3);
61
+
test.equals(annotations[2].el,'#nav');
62
+
test.equals(annotations[2].title,'Navigation');
63
+
test.equals(annotations[2].comment.replace(/\r?\n|\r/gm,""),'<p>Navigation for adaptive web experiences can be tricky. Refer to <a href="https://bradfrost.github.io/this-is-responsive/patterns.html#navigation">these repsonsive patterns</a> when evaluating solutions.</p>');
64
+
65
+
test.end();
66
+
});
67
+
68
+
tap.test('when there are 0 annotation files',function(test){
0 commit comments