Skip to content
This repository was archived by the owner on Aug 5, 2020. It is now read-only.

Commit 6288248

Browse files
committed
Merge pull request #54 from mobify/iframe-test
Iframe test
2 parents 4c30194 + a530948 commit 6288248

File tree

19 files changed

+243
-150
lines changed

19 files changed

+243
-150
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
5.0.1
2+
- Reworked test infrastructure to use more robust setup and teardown using iframes
13
5.0.0
24
- Upgrading to latest version of plugin factory
35
- Adding `destroy` method

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bellows",
3-
"version": "5.1.0",
3+
"version": "5.1.1",
44
"homepage": "https://github.com/mobify/bellows",
55
"authors": [
66
"Mobify <jobs@mobify.com>"

circle.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ machine:
55
test:
66
pre:
77
- gem install sass -v 3.4
8+
- bower cache clean
89
- bower install
910
override:
1011
- grunt lint

dist/bellows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Bellows.__super__.call(this, element, options, Bellows.DEFAULTS);
3434
}
3535

36-
Bellows.VERSION = '5.1.0';
36+
Bellows.VERSION = '5.1.1';
3737

3838
Bellows.DEFAULTS = {
3939
singleItemOpen: false,

dist/bellows.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"type" : "git",
55
"url" : "https://github.com/mobify/bellows.git"
66
},
7-
"version": "5.1.0",
7+
"version": "5.1.1",
88
"description": "A mobile first accordion UI plugin",
99
"devDependencies": {
1010
"grunt": "~0.4.x",
1111
"grunt-contrib-uglify": "~0.1.1",
1212
"grunt-css": "~0.5.4",
1313
"grunt-shell": "~0.2.1",
1414
"grunt-contrib-clean": "~0.5.0",
15-
"grunt-contrib-connect": "~0.3.0",
15+
"grunt-contrib-connect": "~0.9.0",
1616
"grunt-contrib-watch": "~0.5.1",
1717
"grunt-contrib-copy": "~0.4.1",
1818
"grunt-autoprefixer": "~2.0.0",
@@ -25,7 +25,8 @@
2525
"grunt-mocha-phantomjs": "~0.3.2",
2626
"grunt-open": "^0.2.3",
2727
"mocha": "~1.14.0",
28-
"chai": "~1.9.0"
28+
"chai": "~1.9.0",
29+
"requirejs-glob": "git+ssh://git@github.com:mobify/requirejs-glob.git"
2930
},
3031
"license": "MIT"
3132
}

tasks/config/connect.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
module.exports = function(grunt) {
2+
var addRequireJSGlob = function(connect, options, middlewares) {
3+
middlewares.unshift(require('requirejs-glob')());
4+
return middlewares;
5+
};
6+
27
return {
38
server: {
49
options: {
@@ -11,7 +16,8 @@ module.exports = function(grunt) {
1116
options: {
1217
hostname: '0.0.0.0',
1318
port: 8888,
14-
base: '.'
19+
base: '.',
20+
middleware: addRequireJSGlob
1521
}
1622
}
1723
};

tests/fixtures/sandbox.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<html>
2+
<head>
3+
<meta charset="utf-8"/>
4+
<title>Bellows Tests</title>
5+
<link rel="stylesheet" href="../../dist/bellows.min.css"/>
6+
<link rel="stylesheet" href="../../dist/bellows-theme.min.css"/>
7+
</head>
8+
<body>
9+
<div id="container"></div>
10+
11+
<script data-main="../runner/sandbox-main" src="../../bower_components/requirejs/require.js"></script>
12+
</body>

tests/runner/index.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
<meta charset="utf-8"/>
44
<title>Bellows Tests</title>
55
<link rel="stylesheet" href="../../node_modules/mocha/mocha.css"/>
6-
<link rel="stylesheet" href="../../dist/bellows.min.css"/>
7-
<link rel="stylesheet" href="../../dist/bellows-theme.min.css"/>
8-
6+
97
<script src="../../node_modules/mocha/mocha.js"></script>
108
<script src="../../node_modules/chai/chai.js"></script>
119
</head>
1210
<body>
1311
<div id="mocha"></div>
14-
<script data-main="main" src="../../bower_components/requirejs/require.js"></script>
15-
<div id="container"></div>
12+
<script data-main="test-main" src="../../bower_components/requirejs/require.js"></script>
1613
</body>
1714
</html>

tests/runner/main.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)