sass-twitter-bootstrap 0.1.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/{sass-twitter-bootstrap.rb → sass/twitter/bootstrap.rb} +1 -1
- data/lib/sass/twitter/bootstrap/rails.rb +1 -5
- data/lib/sass/twitter/bootstrap/rails/engine.rb +12 -0
- data/lib/sass/twitter/bootstrap/version.rb +1 -1
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap-alert.js +32 -28
- data/vendor/assets/javascripts/twitter/bootstrap-button.js +33 -29
- data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +21 -33
- data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +26 -47
- data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +10 -18
- data/vendor/assets/javascripts/twitter/bootstrap-modal.js +17 -25
- data/vendor/assets/javascripts/twitter/bootstrap-popover.js +10 -13
- data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +18 -44
- data/vendor/assets/javascripts/twitter/bootstrap-tab.js +7 -12
- data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +35 -40
- data/vendor/assets/javascripts/twitter/bootstrap-transition.js +20 -30
- data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +15 -29
- data/vendor/assets/stylesheets/tests/buttons.html +139 -0
- data/vendor/assets/stylesheets/tests/css-tests.css +99 -1
- data/vendor/assets/stylesheets/tests/css-tests.html +519 -37
- data/vendor/assets/stylesheets/tests/forms-responsive.html +71 -0
- data/vendor/assets/stylesheets/tests/navbar-fixed-top.html +104 -0
- data/vendor/assets/stylesheets/tests/navbar-static-top.html +107 -0
- data/vendor/assets/stylesheets/tests/navbar.html +38 -39
- data/vendor/assets/stylesheets/twitter/_accordion.scss +0 -5
- data/vendor/assets/stylesheets/twitter/_alerts.scss +15 -3
- data/vendor/assets/stylesheets/twitter/_breadcrumbs.scss +0 -2
- data/vendor/assets/stylesheets/twitter/_button-groups.scss +32 -76
- data/vendor/assets/stylesheets/twitter/_buttons.scss +25 -33
- data/vendor/assets/stylesheets/twitter/_close.scss +1 -12
- data/vendor/assets/stylesheets/twitter/_code.scss +8 -8
- data/vendor/assets/stylesheets/twitter/_component-animations.scss +7 -9
- data/vendor/assets/stylesheets/twitter/_dropdowns.scss +45 -58
- data/vendor/assets/stylesheets/twitter/_forms.scss +146 -206
- data/vendor/assets/stylesheets/twitter/_grid.scss +5 -2
- data/vendor/assets/stylesheets/twitter/_hero-unit.scss +1 -3
- data/vendor/assets/stylesheets/twitter/_labels.scss +32 -0
- data/vendor/assets/stylesheets/twitter/_layouts.scss +2 -2
- data/vendor/assets/stylesheets/twitter/_mixins.scss +208 -273
- data/vendor/assets/stylesheets/twitter/_modals.scss +8 -14
- data/vendor/assets/stylesheets/twitter/_navbar.scss +73 -132
- data/vendor/assets/stylesheets/twitter/_navs.scss +43 -53
- data/vendor/assets/stylesheets/twitter/_pager.scss +0 -6
- data/vendor/assets/stylesheets/twitter/_pagination.scss +0 -1
- data/vendor/assets/stylesheets/twitter/_progress-bars.scss +6 -28
- data/vendor/assets/stylesheets/twitter/_reset.scss +4 -9
- data/vendor/assets/stylesheets/twitter/_scaffolding.scss +8 -4
- data/vendor/assets/stylesheets/twitter/_sprites.scss +7 -40
- data/vendor/assets/stylesheets/twitter/_tables.scss +33 -38
- data/vendor/assets/stylesheets/twitter/_thumbnails.scss +2 -14
- data/vendor/assets/stylesheets/twitter/_tooltip.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_type.scss +14 -28
- data/vendor/assets/stylesheets/twitter/_variables.scss +19 -116
- data/vendor/assets/stylesheets/twitter/_wells.scss +0 -10
- data/vendor/assets/stylesheets/twitter/bootstrap.scss +7 -3
- data/vendor/assets/stylesheets/twitter/responsive.scss +301 -15
- metadata +25 -190
- data/.gitignore +0 -4
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -14
- data/LICENSE +0 -176
- data/Makefile +0 -94
- data/README.md +0 -217
- data/Rakefile +0 -52
- data/bootstrap-2.0.4.css +0 -4661
- data/bootstrap-2.0.4.min.css +0 -9
- data/bootstrap-responsive-2.0.4.css +0 -932
- data/bootstrap-responsive-2.0.4.min.css +0 -9
- data/docs/assets/css/bootstrap-responsive.css +0 -932
- data/docs/assets/css/bootstrap.css +0 -4661
- data/docs/assets/css/docs.css +0 -846
- data/docs/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
- data/docs/assets/ico/favicon.ico +0 -0
- data/docs/assets/img/bird.png +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
- data/docs/assets/img/browsers.png +0 -0
- data/docs/assets/img/example-sites/fleetio.png +0 -0
- data/docs/assets/img/example-sites/jshint.png +0 -0
- data/docs/assets/img/example-sites/kippt.png +0 -0
- data/docs/assets/img/example-sites/soundready.png +0 -0
- data/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
- data/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
- data/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
- data/docs/assets/img/github-16px.png +0 -0
- data/docs/assets/img/glyphicons-halflings-white.png +0 -0
- data/docs/assets/img/glyphicons-halflings.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
- data/docs/assets/img/grid-18px-masked.png +0 -0
- data/docs/assets/img/icon-css3.png +0 -0
- data/docs/assets/img/icon-github.png +0 -0
- data/docs/assets/img/icon-html5.png +0 -0
- data/docs/assets/img/icon-twitter.png +0 -0
- data/docs/assets/img/less-logo-large.png +0 -0
- data/docs/assets/img/less-small.png +0 -0
- data/docs/assets/img/responsive-illustrations.png +0 -0
- data/docs/assets/js/README.md +0 -106
- data/docs/assets/js/application.js +0 -184
- data/docs/assets/js/bootstrap-alert.js +0 -90
- data/docs/assets/js/bootstrap-button.js +0 -96
- data/docs/assets/js/bootstrap-carousel.js +0 -169
- data/docs/assets/js/bootstrap-collapse.js +0 -157
- data/docs/assets/js/bootstrap-dropdown.js +0 -100
- data/docs/assets/js/bootstrap-modal.js +0 -218
- data/docs/assets/js/bootstrap-popover.js +0 -98
- data/docs/assets/js/bootstrap-scrollspy.js +0 -151
- data/docs/assets/js/bootstrap-tab.js +0 -135
- data/docs/assets/js/bootstrap-tooltip.js +0 -275
- data/docs/assets/js/bootstrap-transition.js +0 -61
- data/docs/assets/js/bootstrap-typeahead.js +0 -285
- data/docs/assets/js/bootstrap.js +0 -1825
- data/docs/assets/js/bootstrap.min.js +0 -6
- data/docs/assets/js/google-code-prettify/prettify.css +0 -30
- data/docs/assets/js/google-code-prettify/prettify.js +0 -28
- data/docs/assets/js/jquery.js +0 -9252
- data/docs/base-css.html +0 -1710
- data/docs/build/index.js +0 -44
- data/docs/build/node_modules/.bin/hulk +0 -93
- data/docs/build/node_modules/hogan.js/.git_ignore +0 -1
- data/docs/build/node_modules/hogan.js/.gitmodules +0 -3
- data/docs/build/node_modules/hogan.js/LICENSE +0 -177
- data/docs/build/node_modules/hogan.js/Makefile +0 -62
- data/docs/build/node_modules/hogan.js/README.md +0 -93
- data/docs/build/node_modules/hogan.js/bin/hulk +0 -93
- data/docs/build/node_modules/hogan.js/lib/compiler.js +0 -348
- data/docs/build/node_modules/hogan.js/lib/hogan.js +0 -20
- data/docs/build/node_modules/hogan.js/lib/template.js +0 -233
- data/docs/build/node_modules/hogan.js/package.json +0 -20
- data/docs/build/node_modules/hogan.js/test/html/list.html +0 -8
- data/docs/build/node_modules/hogan.js/test/index.html +0 -13
- data/docs/build/node_modules/hogan.js/test/index.js +0 -848
- data/docs/build/node_modules/hogan.js/test/mustache.js +0 -90
- data/docs/build/node_modules/hogan.js/test/spec.js +0 -77
- data/docs/build/node_modules/hogan.js/test/spec/Changes +0 -31
- data/docs/build/node_modules/hogan.js/test/spec/README.md +0 -65
- data/docs/build/node_modules/hogan.js/test/spec/Rakefile +0 -27
- data/docs/build/node_modules/hogan.js/test/spec/TESTING.md +0 -46
- data/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +0 -103
- data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +0 -158
- data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +0 -230
- data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +0 -193
- data/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +0 -109
- data/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +0 -256
- data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +0 -149
- data/docs/build/node_modules/hogan.js/test/templates/list.mustache +0 -8
- data/docs/build/node_modules/hogan.js/tools/release.js +0 -74
- data/docs/build/node_modules/hogan.js/tools/web_templates.js +0 -32
- data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +0 -500
- data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +0 -14
- data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +0 -500
- data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +0 -14
- data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +0 -545
- data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +0 -576
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +0 -576
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +0 -572
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +0 -619
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +0 -233
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
- data/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
- data/docs/build/node_modules/hogan.js/web/index.html.mustache +0 -139
- data/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +0 -206
- data/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +0 -236
- data/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +0 -21
- data/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +0 -21
- data/docs/build/node_modules/hogan.js/wrappers/js.mustache +0 -17
- data/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +0 -64
- data/docs/build/package.json +0 -6
- data/docs/components.html +0 -1931
- data/docs/download.html +0 -454
- data/docs/examples.html +0 -147
- data/docs/examples/fluid.html +0 -162
- data/docs/examples/hero.html +0 -109
- data/docs/examples/starter-template.html +0 -79
- data/docs/index.html +0 -259
- data/docs/javascript.html +0 -1520
- data/docs/less.html +0 -1060
- data/docs/scaffolding.html +0 -671
- data/docs/templates/layout.mustache +0 -146
- data/docs/templates/pages/base-css.mustache +0 -1594
- data/docs/templates/pages/components.mustache +0 -1815
- data/docs/templates/pages/download.mustache +0 -338
- data/docs/templates/pages/examples.mustache +0 -31
- data/docs/templates/pages/index.mustache +0 -144
- data/docs/templates/pages/javascript.mustache +0 -1405
- data/docs/templates/pages/less.mustache +0 -944
- data/docs/templates/pages/scaffolding.mustache +0 -555
- data/docs/templates/pages/upgrading.mustache +0 -194
- data/docs/upgrading.html +0 -310
- data/js/tests/index.html +0 -54
- data/js/tests/phantom.js +0 -63
- data/js/tests/server.js +0 -14
- data/js/tests/unit/bootstrap-alert.js +0 -56
- data/js/tests/unit/bootstrap-button.js +0 -77
- data/js/tests/unit/bootstrap-carousel.js +0 -28
- data/js/tests/unit/bootstrap-collapse.js +0 -54
- data/js/tests/unit/bootstrap-dropdown.js +0 -87
- data/js/tests/unit/bootstrap-modal.js +0 -114
- data/js/tests/unit/bootstrap-phantom.js +0 -21
- data/js/tests/unit/bootstrap-popover.js +0 -93
- data/js/tests/unit/bootstrap-scrollspy.js +0 -31
- data/js/tests/unit/bootstrap-tab.js +0 -61
- data/js/tests/unit/bootstrap-tooltip.js +0 -155
- data/js/tests/unit/bootstrap-transition.js +0 -13
- data/js/tests/unit/bootstrap-typeahead.js +0 -148
- data/js/tests/vendor/jquery.js +0 -9252
- data/js/tests/vendor/qunit.css +0 -232
- data/js/tests/vendor/qunit.js +0 -1510
- data/package.json +0 -25
- data/sass-twitter-bootstrap.gemspec +0 -19
- data/vendor/assets/javascripts/README.md +0 -112
- data/vendor/assets/javascripts/twitter/bootstrap.js +0 -12
- data/vendor/assets/stylesheets/twitter/_labels-badges.scss +0 -52
- data/vendor/assets/stylesheets/twitter/_responsive-1200px-min.scss +0 -26
- data/vendor/assets/stylesheets/twitter/_responsive-767px-max.scss +0 -149
- data/vendor/assets/stylesheets/twitter/_responsive-768px-979px.scss +0 -17
- data/vendor/assets/stylesheets/twitter/_responsive-navbar.scss +0 -153
- data/vendor/assets/stylesheets/twitter/_responsive-utilities.scss +0 -41
data/js/tests/index.html
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Bootstrap Plugin Test Suite</title>
|
5
|
-
|
6
|
-
<!-- jquery -->
|
7
|
-
<!--<script src="http://code.jquery.com/jquery-1.7.min.js"></script>-->
|
8
|
-
<script src="vendor/jquery.js"></script>
|
9
|
-
|
10
|
-
<!-- qunit -->
|
11
|
-
<link rel="stylesheet" href="vendor/qunit.css" type="text/css" media="screen" />
|
12
|
-
<script src="vendor/qunit.js"></script>
|
13
|
-
|
14
|
-
<!-- phantomjs logging script-->
|
15
|
-
<script src="unit/bootstrap-phantom.js"></script>
|
16
|
-
|
17
|
-
<!-- plugin sources -->
|
18
|
-
<script src="../../js/bootstrap-transition.js"></script>
|
19
|
-
<script src="../../js/bootstrap-alert.js"></script>
|
20
|
-
<script src="../../js/bootstrap-button.js"></script>
|
21
|
-
<script src="../../js/bootstrap-carousel.js"></script>
|
22
|
-
<script src="../../js/bootstrap-collapse.js"></script>
|
23
|
-
<script src="../../js/bootstrap-dropdown.js"></script>
|
24
|
-
<script src="../../js/bootstrap-modal.js"></script>
|
25
|
-
<script src="../../js/bootstrap-scrollspy.js"></script>
|
26
|
-
<script src="../../js/bootstrap-tab.js"></script>
|
27
|
-
<script src="../../js/bootstrap-tooltip.js"></script>
|
28
|
-
<script src="../../js/bootstrap-popover.js"></script>
|
29
|
-
<script src="../../js/bootstrap-typeahead.js"></script>
|
30
|
-
|
31
|
-
<!-- unit tests -->
|
32
|
-
<script src="unit/bootstrap-transition.js"></script>
|
33
|
-
<script src="unit/bootstrap-alert.js"></script>
|
34
|
-
<script src="unit/bootstrap-button.js"></script>
|
35
|
-
<script src="unit/bootstrap-carousel.js"></script>
|
36
|
-
<script src="unit/bootstrap-collapse.js"></script>
|
37
|
-
<script src="unit/bootstrap-dropdown.js"></script>
|
38
|
-
<script src="unit/bootstrap-modal.js"></script>
|
39
|
-
<script src="unit/bootstrap-scrollspy.js"></script>
|
40
|
-
<script src="unit/bootstrap-tab.js"></script>
|
41
|
-
<script src="unit/bootstrap-tooltip.js"></script>
|
42
|
-
<script src="unit/bootstrap-popover.js"></script>
|
43
|
-
<script src="unit/bootstrap-typeahead.js"></script>
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
<div>
|
47
|
-
<h1 id="qunit-header">Bootstrap Plugin Test Suite</h1>
|
48
|
-
<h2 id="qunit-banner"></h2>
|
49
|
-
<h2 id="qunit-userAgent"></h2>
|
50
|
-
<ol id="qunit-tests"></ol>
|
51
|
-
<div id="qunit-fixture"></div>
|
52
|
-
</div>
|
53
|
-
</body>
|
54
|
-
</html>
|
data/js/tests/phantom.js
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
// Simple phantom.js integration script
|
2
|
-
// Adapted from Modernizr
|
3
|
-
|
4
|
-
function waitFor(testFx, onReady, timeOutMillis) {
|
5
|
-
var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 5001 //< Default Max Timout is 5s
|
6
|
-
, start = new Date().getTime()
|
7
|
-
, condition = false
|
8
|
-
, interval = setInterval(function () {
|
9
|
-
if ((new Date().getTime() - start < maxtimeOutMillis) && !condition) {
|
10
|
-
// If not time-out yet and condition not yet fulfilled
|
11
|
-
condition = (typeof(testFx) === "string" ? eval(testFx) : testFx()) //< defensive code
|
12
|
-
} else {
|
13
|
-
if (!condition) {
|
14
|
-
// If condition still not fulfilled (timeout but condition is 'false')
|
15
|
-
console.log("'waitFor()' timeout")
|
16
|
-
phantom.exit(1)
|
17
|
-
} else {
|
18
|
-
// Condition fulfilled (timeout and/or condition is 'true')
|
19
|
-
typeof(onReady) === "string" ? eval(onReady) : onReady() //< Do what it's supposed to do once the condition is fulfilled
|
20
|
-
clearInterval(interval) //< Stop this interval
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}, 100) //< repeat check every 100ms
|
24
|
-
}
|
25
|
-
|
26
|
-
|
27
|
-
if (phantom.args.length === 0 || phantom.args.length > 2) {
|
28
|
-
console.log('Usage: phantom.js URL')
|
29
|
-
phantom.exit()
|
30
|
-
}
|
31
|
-
|
32
|
-
var page = new WebPage()
|
33
|
-
|
34
|
-
// Route "console.log()" calls from within the Page context to the main Phantom context (i.e. current "this")
|
35
|
-
page.onConsoleMessage = function(msg) {
|
36
|
-
console.log(msg)
|
37
|
-
};
|
38
|
-
|
39
|
-
page.open(phantom.args[0], function(status){
|
40
|
-
if (status !== "success") {
|
41
|
-
console.log("Unable to access network")
|
42
|
-
phantom.exit()
|
43
|
-
} else {
|
44
|
-
waitFor(function(){
|
45
|
-
return page.evaluate(function(){
|
46
|
-
var el = document.getElementById('qunit-testresult')
|
47
|
-
if (el && el.innerText.match('completed')) {
|
48
|
-
return true
|
49
|
-
}
|
50
|
-
return false
|
51
|
-
})
|
52
|
-
}, function(){
|
53
|
-
var failedNum = page.evaluate(function(){
|
54
|
-
var el = document.getElementById('qunit-testresult')
|
55
|
-
try {
|
56
|
-
return el.getElementsByClassName('failed')[0].innerHTML
|
57
|
-
} catch (e) { }
|
58
|
-
return 10000
|
59
|
-
});
|
60
|
-
phantom.exit((parseInt(failedNum, 10) > 0) ? 1 : 0)
|
61
|
-
})
|
62
|
-
}
|
63
|
-
})
|
data/js/tests/server.js
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Simple connect server for phantom.js
|
3
|
-
* Adapted from Modernizr
|
4
|
-
*/
|
5
|
-
|
6
|
-
var connect = require('connect')
|
7
|
-
, http = require('http')
|
8
|
-
, fs = require('fs')
|
9
|
-
, app = connect()
|
10
|
-
.use(connect.static(__dirname + '/../../'));
|
11
|
-
|
12
|
-
http.createServer(app).listen(3000);
|
13
|
-
|
14
|
-
fs.writeFileSync(__dirname + '/pid.txt', process.pid, 'utf-8')
|
@@ -1,56 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-alerts")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
ok($(document.body).alert, 'alert method is defined')
|
7
|
-
})
|
8
|
-
|
9
|
-
test("should return element", function () {
|
10
|
-
ok($(document.body).alert()[0] == document.body, 'document.body returned')
|
11
|
-
})
|
12
|
-
|
13
|
-
test("should fade element out on clicking .close", function () {
|
14
|
-
var alertHTML = '<div class="alert-message warning fade in">'
|
15
|
-
+ '<a class="close" href="#" data-dismiss="alert">×</a>'
|
16
|
-
+ '<p><strong>Holy guacamole!</strong> Best check yo self, you\'re not looking too good.</p>'
|
17
|
-
+ '</div>'
|
18
|
-
, alert = $(alertHTML).alert()
|
19
|
-
|
20
|
-
alert.find('.close').click()
|
21
|
-
|
22
|
-
ok(!alert.hasClass('in'), 'remove .in class on .close click')
|
23
|
-
})
|
24
|
-
|
25
|
-
test("should remove element when clicking .close", function () {
|
26
|
-
$.support.transition = false
|
27
|
-
|
28
|
-
var alertHTML = '<div class="alert-message warning fade in">'
|
29
|
-
+ '<a class="close" href="#" data-dismiss="alert">×</a>'
|
30
|
-
+ '<p><strong>Holy guacamole!</strong> Best check yo self, you\'re not looking too good.</p>'
|
31
|
-
+ '</div>'
|
32
|
-
, alert = $(alertHTML).appendTo('#qunit-fixture').alert()
|
33
|
-
|
34
|
-
ok($('#qunit-fixture').find('.alert-message').length, 'element added to dom')
|
35
|
-
|
36
|
-
alert.find('.close').click()
|
37
|
-
|
38
|
-
ok(!$('#qunit-fixture').find('.alert-message').length, 'element removed from dom')
|
39
|
-
})
|
40
|
-
|
41
|
-
test("should not fire closed when close is prevented", function () {
|
42
|
-
$.support.transition = false
|
43
|
-
stop();
|
44
|
-
$('<div class="alert"/>')
|
45
|
-
.bind('close', function (e) {
|
46
|
-
e.preventDefault();
|
47
|
-
ok(true);
|
48
|
-
start();
|
49
|
-
})
|
50
|
-
.bind('closed', function () {
|
51
|
-
ok(false);
|
52
|
-
})
|
53
|
-
.alert('close')
|
54
|
-
})
|
55
|
-
|
56
|
-
})
|
@@ -1,77 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-buttons")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
ok($(document.body).button, 'button method is defined')
|
7
|
-
})
|
8
|
-
|
9
|
-
test("should return element", function () {
|
10
|
-
ok($(document.body).button()[0] == document.body, 'document.body returned')
|
11
|
-
})
|
12
|
-
|
13
|
-
test("should return set state to loading", function () {
|
14
|
-
var btn = $('<button class="btn" data-loading-text="fat">mdo</button>')
|
15
|
-
equals(btn.html(), 'mdo', 'btn text equals mdo')
|
16
|
-
btn.button('loading')
|
17
|
-
equals(btn.html(), 'fat', 'btn text equals fat')
|
18
|
-
stop()
|
19
|
-
setTimeout(function () {
|
20
|
-
ok(btn.attr('disabled'), 'btn is disabled')
|
21
|
-
ok(btn.hasClass('disabled'), 'btn has disabled class')
|
22
|
-
start()
|
23
|
-
}, 0)
|
24
|
-
})
|
25
|
-
|
26
|
-
test("should return reset state", function () {
|
27
|
-
var btn = $('<button class="btn" data-loading-text="fat">mdo</button>')
|
28
|
-
equals(btn.html(), 'mdo', 'btn text equals mdo')
|
29
|
-
btn.button('loading')
|
30
|
-
equals(btn.html(), 'fat', 'btn text equals fat')
|
31
|
-
stop()
|
32
|
-
setTimeout(function () {
|
33
|
-
ok(btn.attr('disabled'), 'btn is disabled')
|
34
|
-
ok(btn.hasClass('disabled'), 'btn has disabled class')
|
35
|
-
start()
|
36
|
-
stop()
|
37
|
-
}, 0)
|
38
|
-
btn.button('reset')
|
39
|
-
equals(btn.html(), 'mdo', 'btn text equals mdo')
|
40
|
-
setTimeout(function () {
|
41
|
-
ok(!btn.attr('disabled'), 'btn is not disabled')
|
42
|
-
ok(!btn.hasClass('disabled'), 'btn does not have disabled class')
|
43
|
-
start()
|
44
|
-
}, 0)
|
45
|
-
})
|
46
|
-
|
47
|
-
test("should toggle active", function () {
|
48
|
-
var btn = $('<button class="btn">mdo</button>')
|
49
|
-
ok(!btn.hasClass('active'), 'btn does not have active class')
|
50
|
-
btn.button('toggle')
|
51
|
-
ok(btn.hasClass('active'), 'btn has class active')
|
52
|
-
})
|
53
|
-
|
54
|
-
test("should toggle active when btn children are clicked", function () {
|
55
|
-
var btn = $('<button class="btn" data-toggle="button">mdo</button>')
|
56
|
-
, inner = $('<i></i>')
|
57
|
-
btn
|
58
|
-
.append(inner)
|
59
|
-
.appendTo($('#qunit-fixture'))
|
60
|
-
ok(!btn.hasClass('active'), 'btn does not have active class')
|
61
|
-
inner.click()
|
62
|
-
ok(btn.hasClass('active'), 'btn has class active')
|
63
|
-
})
|
64
|
-
|
65
|
-
test("should toggle active when btn children are clicked within btn-group", function () {
|
66
|
-
var btngroup = $('<div class="btn-group" data-toggle="buttons-checkbox"></div>')
|
67
|
-
, btn = $('<button class="btn">fat</button>')
|
68
|
-
, inner = $('<i></i>')
|
69
|
-
btngroup
|
70
|
-
.append(btn.append(inner))
|
71
|
-
.appendTo($('#qunit-fixture'))
|
72
|
-
ok(!btn.hasClass('active'), 'btn does not have active class')
|
73
|
-
inner.click()
|
74
|
-
ok(btn.hasClass('active'), 'btn has class active')
|
75
|
-
})
|
76
|
-
|
77
|
-
})
|
@@ -1,28 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-carousel")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
ok($(document.body).carousel, 'carousel method is defined')
|
7
|
-
})
|
8
|
-
|
9
|
-
test("should return element", function () {
|
10
|
-
ok($(document.body).carousel()[0] == document.body, 'document.body returned')
|
11
|
-
})
|
12
|
-
|
13
|
-
test("should not fire sliden when slide is prevented", function () {
|
14
|
-
$.support.transition = false
|
15
|
-
stop();
|
16
|
-
$('<div class="carousel"/>')
|
17
|
-
.bind('slide', function (e) {
|
18
|
-
e.preventDefault();
|
19
|
-
ok(true);
|
20
|
-
start();
|
21
|
-
})
|
22
|
-
.bind('slid', function () {
|
23
|
-
ok(false);
|
24
|
-
})
|
25
|
-
.carousel('next')
|
26
|
-
})
|
27
|
-
|
28
|
-
})
|
@@ -1,54 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-collapse")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
ok($(document.body).collapse, 'collapse method is defined')
|
7
|
-
})
|
8
|
-
|
9
|
-
test("should return element", function () {
|
10
|
-
ok($(document.body).collapse()[0] == document.body, 'document.body returned')
|
11
|
-
})
|
12
|
-
|
13
|
-
test("should show a collapsed element", function () {
|
14
|
-
var el = $('<div class="collapse"></div>').collapse('show')
|
15
|
-
ok(el.hasClass('in'), 'has class in')
|
16
|
-
ok(/height/.test(el.attr('style')), 'has height set')
|
17
|
-
})
|
18
|
-
|
19
|
-
test("should hide a collapsed element", function () {
|
20
|
-
var el = $('<div class="collapse"></div>').collapse('hide')
|
21
|
-
ok(!el.hasClass('in'), 'does not have class in')
|
22
|
-
ok(/height/.test(el.attr('style')), 'has height set')
|
23
|
-
})
|
24
|
-
|
25
|
-
test("should not fire shown when show is prevented", function () {
|
26
|
-
$.support.transition = false
|
27
|
-
stop();
|
28
|
-
$('<div class="collapse"/>')
|
29
|
-
.bind('show', function (e) {
|
30
|
-
e.preventDefault();
|
31
|
-
ok(true);
|
32
|
-
start();
|
33
|
-
})
|
34
|
-
.bind('shown', function () {
|
35
|
-
ok(false);
|
36
|
-
})
|
37
|
-
.collapse('show')
|
38
|
-
})
|
39
|
-
|
40
|
-
test("should reset style to auto after finishing opening collapse", function () {
|
41
|
-
$.support.transition = false
|
42
|
-
stop();
|
43
|
-
$('<div class="collapse" style="height: 0px"/>')
|
44
|
-
.bind('show', function () {
|
45
|
-
ok(this.style.height == '0px')
|
46
|
-
})
|
47
|
-
.bind('shown', function () {
|
48
|
-
ok(this.style.height == 'auto')
|
49
|
-
start()
|
50
|
-
})
|
51
|
-
.collapse('show')
|
52
|
-
})
|
53
|
-
|
54
|
-
})
|
@@ -1,87 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-dropdowns")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
ok($(document.body).dropdown, 'dropdown method is defined')
|
7
|
-
})
|
8
|
-
|
9
|
-
test("should return element", function () {
|
10
|
-
ok($(document.body).dropdown()[0] == document.body, 'document.body returned')
|
11
|
-
})
|
12
|
-
|
13
|
-
test("should not open dropdown if target is disabled", function () {
|
14
|
-
var dropdownHTML = '<ul class="tabs">'
|
15
|
-
+ '<li class="dropdown">'
|
16
|
-
+ '<button disabled href="#" class="btn dropdown-toggle" data-toggle="dropdown">Dropdown</button>'
|
17
|
-
+ '<ul class="dropdown-menu">'
|
18
|
-
+ '<li><a href="#">Secondary link</a></li>'
|
19
|
-
+ '<li><a href="#">Something else here</a></li>'
|
20
|
-
+ '<li class="divider"></li>'
|
21
|
-
+ '<li><a href="#">Another link</a></li>'
|
22
|
-
+ '</ul>'
|
23
|
-
+ '</li>'
|
24
|
-
+ '</ul>'
|
25
|
-
, dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
|
26
|
-
|
27
|
-
ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
|
28
|
-
})
|
29
|
-
|
30
|
-
test("should not open dropdown if target is disabled", function () {
|
31
|
-
var dropdownHTML = '<ul class="tabs">'
|
32
|
-
+ '<li class="dropdown">'
|
33
|
-
+ '<button href="#" class="btn dropdown-toggle disabled" data-toggle="dropdown">Dropdown</button>'
|
34
|
-
+ '<ul class="dropdown-menu">'
|
35
|
-
+ '<li><a href="#">Secondary link</a></li>'
|
36
|
-
+ '<li><a href="#">Something else here</a></li>'
|
37
|
-
+ '<li class="divider"></li>'
|
38
|
-
+ '<li><a href="#">Another link</a></li>'
|
39
|
-
+ '</ul>'
|
40
|
-
+ '</li>'
|
41
|
-
+ '</ul>'
|
42
|
-
, dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
|
43
|
-
|
44
|
-
ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
|
45
|
-
})
|
46
|
-
|
47
|
-
test("should add class open to menu if clicked", function () {
|
48
|
-
var dropdownHTML = '<ul class="tabs">'
|
49
|
-
+ '<li class="dropdown">'
|
50
|
-
+ '<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>'
|
51
|
-
+ '<ul class="dropdown-menu">'
|
52
|
-
+ '<li><a href="#">Secondary link</a></li>'
|
53
|
-
+ '<li><a href="#">Something else here</a></li>'
|
54
|
-
+ '<li class="divider"></li>'
|
55
|
-
+ '<li><a href="#">Another link</a></li>'
|
56
|
-
+ '</ul>'
|
57
|
-
+ '</li>'
|
58
|
-
+ '</ul>'
|
59
|
-
, dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
|
60
|
-
|
61
|
-
ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
|
62
|
-
})
|
63
|
-
|
64
|
-
test("should remove open class if body clicked", function () {
|
65
|
-
var dropdownHTML = '<ul class="tabs">'
|
66
|
-
+ '<li class="dropdown">'
|
67
|
-
+ '<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown</a>'
|
68
|
-
+ '<ul class="dropdown-menu">'
|
69
|
-
+ '<li><a href="#">Secondary link</a></li>'
|
70
|
-
+ '<li><a href="#">Something else here</a></li>'
|
71
|
-
+ '<li class="divider"></li>'
|
72
|
-
+ '<li><a href="#">Another link</a></li>'
|
73
|
-
+ '</ul>'
|
74
|
-
+ '</li>'
|
75
|
-
+ '</ul>'
|
76
|
-
, dropdown = $(dropdownHTML)
|
77
|
-
.appendTo('#qunit-fixture')
|
78
|
-
.find('[data-toggle="dropdown"]')
|
79
|
-
.dropdown()
|
80
|
-
.click()
|
81
|
-
ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
|
82
|
-
$('body').click()
|
83
|
-
ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class removed')
|
84
|
-
dropdown.remove()
|
85
|
-
})
|
86
|
-
|
87
|
-
})
|
@@ -1,114 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-modal")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
var div = $("<div id='modal-test'></div>")
|
7
|
-
ok(div.modal, 'modal method is defined')
|
8
|
-
})
|
9
|
-
|
10
|
-
test("should return element", function () {
|
11
|
-
var div = $("<div id='modal-test'></div>")
|
12
|
-
ok(div.modal() == div, 'document.body returned')
|
13
|
-
$('#modal-test').remove()
|
14
|
-
})
|
15
|
-
|
16
|
-
test("should expose defaults var for settings", function () {
|
17
|
-
ok($.fn.modal.defaults, 'default object exposed')
|
18
|
-
})
|
19
|
-
|
20
|
-
test("should insert into dom when show method is called", function () {
|
21
|
-
stop()
|
22
|
-
$.support.transition = false
|
23
|
-
$("<div id='modal-test'></div>")
|
24
|
-
.bind("shown", function () {
|
25
|
-
ok($('#modal-test').length, 'modal insterted into dom')
|
26
|
-
$(this).remove()
|
27
|
-
start()
|
28
|
-
})
|
29
|
-
.modal("show")
|
30
|
-
})
|
31
|
-
|
32
|
-
test("should fire show event", function () {
|
33
|
-
stop()
|
34
|
-
$.support.transition = false
|
35
|
-
$("<div id='modal-test'></div>")
|
36
|
-
.bind("show", function () {
|
37
|
-
ok(true, "show was called")
|
38
|
-
})
|
39
|
-
.bind("shown", function () {
|
40
|
-
$(this).remove()
|
41
|
-
start()
|
42
|
-
})
|
43
|
-
.modal("show")
|
44
|
-
})
|
45
|
-
|
46
|
-
test("should not fire shown when default prevented", function () {
|
47
|
-
stop()
|
48
|
-
$.support.transition = false
|
49
|
-
$("<div id='modal-test'></div>")
|
50
|
-
.bind("show", function (e) {
|
51
|
-
e.preventDefault()
|
52
|
-
ok(true, "show was called")
|
53
|
-
start()
|
54
|
-
})
|
55
|
-
.bind("shown", function () {
|
56
|
-
ok(false, "shown was called")
|
57
|
-
})
|
58
|
-
.modal("show")
|
59
|
-
})
|
60
|
-
|
61
|
-
test("should hide modal when hide is called", function () {
|
62
|
-
stop()
|
63
|
-
$.support.transition = false
|
64
|
-
|
65
|
-
$("<div id='modal-test'></div>")
|
66
|
-
.bind("shown", function () {
|
67
|
-
ok($('#modal-test').is(":visible"), 'modal visible')
|
68
|
-
ok($('#modal-test').length, 'modal insterted into dom')
|
69
|
-
$(this).modal("hide")
|
70
|
-
})
|
71
|
-
.bind("hidden", function() {
|
72
|
-
ok(!$('#modal-test').is(":visible"), 'modal hidden')
|
73
|
-
$('#modal-test').remove()
|
74
|
-
start()
|
75
|
-
})
|
76
|
-
.modal("show")
|
77
|
-
})
|
78
|
-
|
79
|
-
test("should toggle when toggle is called", function () {
|
80
|
-
stop()
|
81
|
-
$.support.transition = false
|
82
|
-
var div = $("<div id='modal-test'></div>")
|
83
|
-
div
|
84
|
-
.bind("shown", function () {
|
85
|
-
ok($('#modal-test').is(":visible"), 'modal visible')
|
86
|
-
ok($('#modal-test').length, 'modal insterted into dom')
|
87
|
-
div.modal("toggle")
|
88
|
-
})
|
89
|
-
.bind("hidden", function() {
|
90
|
-
ok(!$('#modal-test').is(":visible"), 'modal hidden')
|
91
|
-
div.remove()
|
92
|
-
start()
|
93
|
-
})
|
94
|
-
.modal("toggle")
|
95
|
-
})
|
96
|
-
|
97
|
-
test("should remove from dom when click [data-dismiss=modal]", function () {
|
98
|
-
stop()
|
99
|
-
$.support.transition = false
|
100
|
-
var div = $("<div id='modal-test'><span class='close' data-dismiss='modal'></span></div>")
|
101
|
-
div
|
102
|
-
.bind("shown", function () {
|
103
|
-
ok($('#modal-test').is(":visible"), 'modal visible')
|
104
|
-
ok($('#modal-test').length, 'modal insterted into dom')
|
105
|
-
div.find('.close').click()
|
106
|
-
})
|
107
|
-
.bind("hidden", function() {
|
108
|
-
ok(!$('#modal-test').is(":visible"), 'modal hidden')
|
109
|
-
div.remove()
|
110
|
-
start()
|
111
|
-
})
|
112
|
-
.modal("toggle")
|
113
|
-
})
|
114
|
-
})
|