forked from hakimel/reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathw02-01.html
127 lines (105 loc) · 3.55 KB
/
w02-01.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Scripting and Testing</title>
<meta name="description" content="Node.js">
<meta name="author" content="John D. Martin III">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="dist/reset.css">
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="dist/theme/black.css" id="theme">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="plugin/highlight/monokai.css">
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section data-background-image="./headers.png" data-background-position="left" data-background-opacity="0.25">
<h2>Scripting and Testing</h2>
<h3>
COMP 426 w02.01
</h3>
</section>
<section>
<h2>Agenda</h2>
<ol>
<li>Thinking: developing v. programming v. coding</li>
<li>Designing tests</li>
<li>npm helper scripts</li>
<li>How to know what you are looking for</li>
<li>WTF is the autograder and how does it work?</li>
</ol>
</section>
<section>
<section>
<h2 data-id="code-title">How do we think?</h2>
</section>
<section>
<h2 data-id="code-title">How do coders think?</h2>
</section>
<section>
<h2 data-id="code-title">How do programmers think?</h2>
</section>
<section>
<h2 data-id="code-title">How do developers think?</h2>
</section>
</section>
<section data-background-image="https://images-na.ssl-images-amazon.com/images/I/51KNv7OpgHL.jpg" data-background-position="center" data-background-size="contain" data-background-color="#ed8d40">
</section>
<section>
<h2 data-id="code-title">Designing tests</h2>
</section>
<section data-auto-animate>
<h2 data-id="code-title">Status Codes</h2>
<pre data-id="code-animation"><code data-trim>
"scripts": {
"test": "????????????????????",
"start": "node server.js"
},
</code></pre>
</section>
<section>
<section>
<h2 data-id="code-title">What to look for?</h2>
</section>
<section>
<h2 data-id="code-title">What are the possible interactions?</h2>
</section>
<section>
<h2 data-id="code-title">What are we expecting to happen?</h2>
</section>
<section>
<h2 data-id="code-title">What if something fails?</h2>
</section>
</section>
<section>
<h2 data-id="code-title">WTF, autograder?</h2>
</section>
<section data-auto-animate>
<a href="https://code.johndmart.in" target="_blank">Demo</a>
</section>
</div>
</div>
<script src="dist/reveal.js"></script>
<script>
Reveal.initialize();
const loadScript = src => {
return new Promise((resolve, reject) => {
const script = document.createElement('script');
script.type = 'text/javascript';
script.onload = resolve;
script.onerror = reject;
script.src = src;
document.head.append(script);
})
}
loadScript( 'plugin/highlight/highlight.js' ).then(() => {
Reveal.registerPlugin( RevealHighlight )
})
</script>
</body>
</html>