Skip to content

Commit e678d85

Browse files
committed
Added renamed Cornish to Instapoppin'.
1 parent c175fed commit e678d85

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!DOCTYPE html>
22
<meta charset="utf-8">
3-
<title>Cornish Test</title>
3+
<title>Instapoppin' Test</title>
44
<script src="popcorn.min.js"></script>
5-
<script src="cornish.js"></script>
5+
<script src="instapoppin.js"></script>
66
<style>
77
div.subtitles {
88
position: relative;

cornish.js renamed to instapoppin.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* cornish.js version 0.1
2+
* instapoppin.js version 0.1
33
*
44
* Copyright 2011, Mozilla Foundation
55
* Licensed under the MIT license
66
*/
77

8-
var Cornish = (function() {
8+
var Instapoppin = (function() {
99
var activateOnLoad = true;
1010

1111
function ParseError(message) { this.message = message; }
@@ -85,7 +85,7 @@ var Cornish = (function() {
8585
},
8686
getActiveDurations: function(element) {
8787
var activeDuring = element.getAttribute('data-active-during');
88-
return Cornish.parseDurations(activeDuring);
88+
return Instapoppin.parseDurations(activeDuring);
8989
}
9090
};
9191

@@ -109,17 +109,17 @@ var Cornish = (function() {
109109
return;
110110
}
111111
var pop = Popcorn(primaries[0]);
112-
Cornish.getParticipatingElements().forEach(function(elem) {
113-
var durations = Cornish.getActiveDurations(elem);
112+
Instapoppin.getParticipatingElements().forEach(function(elem) {
113+
var durations = Instapoppin.getActiveDurations(elem);
114114
durations.forEach(function(duration) {
115115
pop.code({
116116
start: duration.start,
117117
end: duration.end,
118118
onStart: function() {
119-
Cornish.addClass(elem, 'active');
119+
Instapoppin.addClass(elem, 'active');
120120
},
121121
onEnd: function() {
122-
Cornish.removeClass(elem, 'active');
122+
Instapoppin.removeClass(elem, 'active');
123123
}
124124
});
125125
});

test/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<!DOCTYPE html>
22
<meta charset="utf-8">
3-
<title>Cornish Unit Tests</title>
3+
<title>Instapoppin' Unit Tests</title>
44
<link rel="stylesheet" href="qunit.css">
55

66
<script src="qunit.js"></script>
7-
<script src="../cornish.js"></script>
7+
<script src="../instapoppin.js"></script>
88

99
<script>
10-
module("Cornish.parseDurations()");
10+
module("Instapoppin.parseDurations()");
1111

1212
test("errors thrown when input can't be parsed", function() {
1313
function ensureFails(str) {
1414
raises(function() {
15-
Cornish.parseDurations(str);
16-
}, Cornish.ParseError, "'" + str + "' fails");
15+
Instapoppin.parseDurations(str);
16+
}, Instapoppin.ParseError, "'" + str + "' fails");
1717
}
1818

1919
ensureFails("blah");
@@ -29,8 +29,8 @@
2929

3030
test("durations provided when input can be parsed", function() {
3131
function ensureWorks(str, expected) {
32-
deepEqual(Cornish.parseDurations(str), expected,
33-
"Cornish.parseDurations('" + str + "') works");
32+
deepEqual(Instapoppin.parseDurations(str), expected,
33+
"Instapoppin.parseDurations('" + str + "') works");
3434
}
3535

3636
ensureWorks("1-5", [{start: 1, end: 5}]);
@@ -41,7 +41,7 @@
4141
});
4242
</script>
4343

44-
<h1 id="qunit-header">Cornish Unit Tests</h1>
44+
<h1 id="qunit-header">Instapoppin' Unit Tests</h1>
4545
<h2 id="qunit-banner"></h2>
4646
<div id="qunit-testrunner-toolbar"></div>
4747
<h2 id="qunit-userAgent"></h2>

0 commit comments

Comments
 (0)