gumdrop 0.2.16 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +11 -1
- data/Rakefile +9 -1
- data/bin/gumdrop +3 -1
- data/lib/gumdrop.rb +45 -73
- data/lib/gumdrop/build.rb +92 -0
- data/lib/gumdrop/content.rb +3 -2
- data/lib/gumdrop/generator.rb +64 -7
- data/lib/gumdrop/logging.rb +35 -0
- data/lib/gumdrop/pager.rb +4 -4
- data/lib/gumdrop/server.rb +26 -10
- data/lib/gumdrop/template/default/Gemfile +4 -2
- data/lib/gumdrop/template/default/Rakefile +4 -1
- data/lib/gumdrop/template/default/config.ru +6 -2
- data/lib/gumdrop/template/default/lib/site.rb +15 -5
- data/lib/gumdrop/template/default/powrc +2 -0
- data/lib/gumdrop/version.rb +2 -2
- data/specs/content_spec.rb +31 -0
- data/specs/deferred_loader_spec.rb +31 -0
- data/specs/hash_object_spec.rb +31 -0
- metadata +19 -83
- data/lib/gumdrop/template/twitter/Gemfile +0 -28
- data/lib/gumdrop/template/twitter/Rakefile +0 -35
- data/lib/gumdrop/template/twitter/config.ru +0 -17
- data/lib/gumdrop/template/twitter/data/config.yml +0 -4
- data/lib/gumdrop/template/twitter/lib/site.rb +0 -43
- data/lib/gumdrop/template/twitter/lib/view_helpers.rb +0 -17
- data/lib/gumdrop/template/twitter/source/_sidebar.html.slim +0 -1
- data/lib/gumdrop/template/twitter/source/container-app.html.slim +0 -89
- data/lib/gumdrop/template/twitter/source/default.htaccess +0 -16
- data/lib/gumdrop/template/twitter/source/favicon.ico +0 -0
- data/lib/gumdrop/template/twitter/source/feed.xml.builder.txt +0 -23
- data/lib/gumdrop/template/twitter/source/fluid.html.slim +0 -134
- data/lib/gumdrop/template/twitter/source/hero.html.slim +0 -49
- data/lib/gumdrop/template/twitter/source/index.html.erb +0 -10
- data/lib/gumdrop/template/twitter/source/theme/screen.css.sass +0 -3
- data/lib/gumdrop/template/twitter/source/theme/scripts/app.js.coffee +0 -4
- data/lib/gumdrop/template/twitter/source/theme/scripts/jquery.js +0 -4
- data/lib/gumdrop/template/twitter/source/theme/styles/_tools.scss +0 -434
- data/lib/gumdrop/template/twitter/source/theme/templates/site.template.slim +0 -19
- data/lib/gumdrop/template/twitter/source/theme/twitter/LICENSE +0 -13
- data/lib/gumdrop/template/twitter/source/theme/twitter/Makefile +0 -30
- data/lib/gumdrop/template/twitter/source/theme/twitter/README.md +0 -115
- data/lib/gumdrop/template/twitter/source/theme/twitter/bootstrap-min.css +0 -330
- data/lib/gumdrop/template/twitter/source/theme/twitter/bootstrap.css +0 -2362
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/css/docs.css +0 -317
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/ico/bootstrap-apple-114x114.png +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/ico/bootstrap-apple-57x57.png +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/ico/bootstrap-apple-72x72.png +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/ico/favicon.ico +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/bird.png +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/browsers.png +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/example-diagram-01.png +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/example-diagram-02.png +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/example-diagram-03.png +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/grid-18px.png +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/twitter-logo-no-bird.png +0 -0
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/js/application.js +0 -52
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/js/google-code-prettify/prettify.css +0 -41
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/js/google-code-prettify/prettify.js +0 -28
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/index.html +0 -1932
- data/lib/gumdrop/template/twitter/source/theme/twitter/docs/javascript.html +0 -676
- data/lib/gumdrop/template/twitter/source/theme/twitter/examples/container-app.html +0 -119
- data/lib/gumdrop/template/twitter/source/theme/twitter/examples/fluid.html +0 -126
- data/lib/gumdrop/template/twitter/source/theme/twitter/examples/hero.html +0 -79
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-alerts.js +0 -104
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-dropdown.js +0 -50
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-modal.js +0 -238
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-popover.js +0 -77
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-scrollspy.js +0 -105
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-tabs.js +0 -62
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-twipsy.js +0 -307
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/index.html +0 -38
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-alerts.js +0 -41
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-dropdown.js +0 -52
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-modal.js +0 -151
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-popover.js +0 -76
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-scrollspy.js +0 -31
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-tabs.js +0 -49
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-twipsy.js +0 -81
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/vendor/qunit.css +0 -232
- data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/vendor/qunit.js +0 -1510
- data/lib/gumdrop/template/twitter/source/theme/twitter/lib/bootstrap.less +0 -26
- data/lib/gumdrop/template/twitter/source/theme/twitter/lib/forms.less +0 -465
- data/lib/gumdrop/template/twitter/source/theme/twitter/lib/mixins.less +0 -217
- data/lib/gumdrop/template/twitter/source/theme/twitter/lib/patterns.less +0 -1005
- data/lib/gumdrop/template/twitter/source/theme/twitter/lib/reset.less +0 -141
- data/lib/gumdrop/template/twitter/source/theme/twitter/lib/scaffolding.less +0 -135
- data/lib/gumdrop/template/twitter/source/theme/twitter/lib/tables.less +0 -171
- data/lib/gumdrop/template/twitter/source/theme/twitter/lib/type.less +0 -187
- data/lib/gumdrop/template/twitter/source/theme/twitter/lib/variables.less +0 -60
@@ -1,76 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-popover")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
var div = $('<div></div>')
|
7
|
-
ok(div.popover, 'popover method is defined')
|
8
|
-
})
|
9
|
-
|
10
|
-
test("should return element", function () {
|
11
|
-
var div = $('<div></div>')
|
12
|
-
ok(div.popover() == div, 'document.body returned')
|
13
|
-
})
|
14
|
-
|
15
|
-
test("should render popover element", function () {
|
16
|
-
$.support.transition = false
|
17
|
-
var popover = $('<a href="#" title="mdo" data-content="http://twitter.com/mdo">@mdo</a>')
|
18
|
-
.appendTo('#qunit-runoff')
|
19
|
-
.popover()
|
20
|
-
.popover('show')
|
21
|
-
|
22
|
-
ok($('.popover').length, 'popover was inserted')
|
23
|
-
popover.popover('hide')
|
24
|
-
ok(!$(".popover").length, 'popover removed')
|
25
|
-
$('#qunit-runoff').empty()
|
26
|
-
})
|
27
|
-
|
28
|
-
test("should store popover instance in popover data object", function () {
|
29
|
-
$.support.transition = false
|
30
|
-
var popover = $('<a href="#" title="mdo" data-content="http://twitter.com/mdo">@mdo</a>')
|
31
|
-
.popover()
|
32
|
-
|
33
|
-
ok(!!popover.data('popover'), 'popover instance exists')
|
34
|
-
})
|
35
|
-
|
36
|
-
test("should get title and content from options", function () {
|
37
|
-
$.support.transition = false
|
38
|
-
var popover = $('<a href="#">@fat</a>')
|
39
|
-
.appendTo('#qunit-runoff')
|
40
|
-
.popover({
|
41
|
-
title: function () {
|
42
|
-
return '@fat'
|
43
|
-
}
|
44
|
-
, content: function () {
|
45
|
-
return 'loves writing tests (╯°□°)╯︵ ┻━┻'
|
46
|
-
}
|
47
|
-
})
|
48
|
-
|
49
|
-
popover.popover('show')
|
50
|
-
|
51
|
-
ok($('.popover').length, 'popover was inserted')
|
52
|
-
equals($('.popover .title').text(), '@fat', 'title correctly inserted')
|
53
|
-
equals($('.popover .content').text(), 'loves writing tests (╯°□°)╯︵ ┻━┻', 'content correctly inserted')
|
54
|
-
|
55
|
-
popover.popover('hide')
|
56
|
-
ok(!$('.popover').length, 'popover was removed')
|
57
|
-
$('#qunit-runoff').empty()
|
58
|
-
})
|
59
|
-
|
60
|
-
test("should get title and content from attributes", function () {
|
61
|
-
$.support.transition = false
|
62
|
-
var popover = $('<a href="#" title="@mdo" data-content="loves data attributes (づ。◕‿‿◕。)づ ︵ ┻━┻" >@mdo</a>')
|
63
|
-
.appendTo('#qunit-runoff')
|
64
|
-
.popover()
|
65
|
-
.popover('show')
|
66
|
-
|
67
|
-
ok($('.popover').length, 'popover was inserted')
|
68
|
-
equals($('.popover .title').text(), '@mdo', 'title correctly inserted')
|
69
|
-
equals($('.popover .content').text(), "loves data attributes (づ。◕‿‿◕。)づ ︵ ┻━┻", 'content correctly inserted')
|
70
|
-
|
71
|
-
popover.popover('hide')
|
72
|
-
ok(!$('.popover').length, 'popover was removed')
|
73
|
-
$('#qunit-runoff').empty()
|
74
|
-
})
|
75
|
-
|
76
|
-
})
|
@@ -1,31 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-scrollspy")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
ok($(document.body).scrollspy, 'scrollspy method is defined')
|
7
|
-
})
|
8
|
-
|
9
|
-
test("should return element", function () {
|
10
|
-
ok($(document.body).scrollspy()[0] == document.body, 'document.body returned')
|
11
|
-
})
|
12
|
-
|
13
|
-
test("should switch active class on scroll", function () {
|
14
|
-
var sectionHTML = '<div id="masthead"></div>'
|
15
|
-
, $section = $(sectionHTML).append('#qunit-runoff')
|
16
|
-
, topbarHTML ='<div class="topbar">'
|
17
|
-
+ '<div class="topbar-inner">'
|
18
|
-
+ '<div class="container">'
|
19
|
-
+ '<h3><a href="#">Bootstrap</a></h3>'
|
20
|
-
+ '<ul class="nav">'
|
21
|
-
+ '<li><a href="#masthead">Overview</a></li>'
|
22
|
-
+ '</ul>'
|
23
|
-
+ '</div>'
|
24
|
-
+ '</div>'
|
25
|
-
+ '</div>'
|
26
|
-
, $topbar = $(topbarHTML).topbar()
|
27
|
-
|
28
|
-
ok(topbar.find('.active', true)
|
29
|
-
})
|
30
|
-
|
31
|
-
})
|
@@ -1,49 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-tabs")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
ok($(document.body).tabs, 'tabs method is defined')
|
7
|
-
})
|
8
|
-
|
9
|
-
test("should return element", function () {
|
10
|
-
ok($(document.body).tabs()[0] == document.body, 'document.body returned')
|
11
|
-
})
|
12
|
-
|
13
|
-
test("should activate element by tab id", function () {
|
14
|
-
var tabsHTML = '<ul class="tabs">'
|
15
|
-
+ '<li class="active"><a href="#home">Home</a></li>'
|
16
|
-
+ '<li><a href="#profile">Profile</a></li>'
|
17
|
-
+ '</ul>'
|
18
|
-
|
19
|
-
|
20
|
-
$('<ul><li id="home"></li><li id="profile"></li></ul>').appendTo("#qunit-runoff")
|
21
|
-
|
22
|
-
$(tabsHTML).tabs().find('a').last().click()
|
23
|
-
equals($("#qunit-runoff").find('.active').attr('id'), "profile")
|
24
|
-
|
25
|
-
$(tabsHTML).tabs().find('a').first().click()
|
26
|
-
equals($("#qunit-runoff").find('.active').attr('id'), "home")
|
27
|
-
|
28
|
-
$("#qunit-runoff").empty()
|
29
|
-
})
|
30
|
-
|
31
|
-
test("should activate element by pill id", function () {
|
32
|
-
var pillsHTML = '<ul class="pills">'
|
33
|
-
+ '<li class="active"><a href="#home">Home</a></li>'
|
34
|
-
+ '<li><a href="#profile">Profile</a></li>'
|
35
|
-
+ '</ul>'
|
36
|
-
|
37
|
-
|
38
|
-
$('<ul><li id="home"></li><li id="profile"></li></ul>').appendTo("#qunit-runoff")
|
39
|
-
|
40
|
-
$(pillsHTML).pills().find('a').last().click()
|
41
|
-
equals($("#qunit-runoff").find('.active').attr('id'), "profile")
|
42
|
-
|
43
|
-
$(pillsHTML).pills().find('a').first().click()
|
44
|
-
equals($("#qunit-runoff").find('.active').attr('id'), "home")
|
45
|
-
|
46
|
-
$("#qunit-runoff").empty()
|
47
|
-
})
|
48
|
-
|
49
|
-
})
|
@@ -1,81 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-twipsy")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
var div = $("<div></div>")
|
7
|
-
ok(div.twipsy, 'popover method is defined')
|
8
|
-
})
|
9
|
-
|
10
|
-
test("should return element", function () {
|
11
|
-
var div = $("<div></div>")
|
12
|
-
ok(div.twipsy() == div, 'document.body returned')
|
13
|
-
})
|
14
|
-
|
15
|
-
test("should expose default settings", function () {
|
16
|
-
ok(!!$.fn.twipsy.defaults, 'defaults is defined')
|
17
|
-
})
|
18
|
-
|
19
|
-
test("should remove title attribute", function () {
|
20
|
-
var twipsy = $('<a href="#" rel="twipsy" title="Another twipsy"></a>').twipsy()
|
21
|
-
ok(!twipsy.attr('title'), 'title tag was removed')
|
22
|
-
})
|
23
|
-
|
24
|
-
test("should add data attribute for referencing original title", function () {
|
25
|
-
var twipsy = $('<a href="#" rel="twipsy" title="Another twipsy"></a>').twipsy()
|
26
|
-
equals(twipsy.attr('data-original-title'), 'Another twipsy', 'original title preserved in data attribute')
|
27
|
-
})
|
28
|
-
|
29
|
-
test("should place tooltips relative to placement option", function () {
|
30
|
-
$.support.transition = false
|
31
|
-
var twipsy = $('<a href="#" rel="twipsy" title="Another twipsy"></a>')
|
32
|
-
.appendTo('#qunit-runoff')
|
33
|
-
.twipsy({placement: 'below'})
|
34
|
-
.twipsy('show')
|
35
|
-
|
36
|
-
ok($(".twipsy").hasClass('fade below in'), 'has correct classes applied')
|
37
|
-
twipsy.twipsy('hide')
|
38
|
-
ok(!$(".twipsy").length, 'twipsy removed')
|
39
|
-
$('#qunit-runoff').empty()
|
40
|
-
})
|
41
|
-
|
42
|
-
test("should add a fallback in cases where elements have no title tag", function () {
|
43
|
-
$.support.transition = false
|
44
|
-
var twipsy = $('<a href="#" rel="twipsy"></a>')
|
45
|
-
.appendTo('#qunit-runoff')
|
46
|
-
.twipsy({fallback: '@fat'})
|
47
|
-
.twipsy('show')
|
48
|
-
|
49
|
-
equals($(".twipsy").text(), "@fat", 'has correct default text')
|
50
|
-
twipsy.twipsy('hide')
|
51
|
-
ok(!$(".twipsy").length, 'twipsy removed')
|
52
|
-
$('#qunit-runoff').empty()
|
53
|
-
})
|
54
|
-
|
55
|
-
test("should not allow html entities", function () {
|
56
|
-
$.support.transition = false
|
57
|
-
var twipsy = $('<a href="#" rel="twipsy" title="<b>@fat</b>"></a>')
|
58
|
-
.appendTo('#qunit-runoff')
|
59
|
-
.twipsy()
|
60
|
-
.twipsy('show')
|
61
|
-
|
62
|
-
ok(!$('.twipsy b').length, 'b tag was not inserted')
|
63
|
-
twipsy.twipsy('hide')
|
64
|
-
ok(!$(".twipsy").length, 'twipsy removed')
|
65
|
-
$('#qunit-runoff').empty()
|
66
|
-
})
|
67
|
-
|
68
|
-
test("should allow html entities if html option set to true", function () {
|
69
|
-
$.support.transition = false
|
70
|
-
var twipsy = $('<a href="#" rel="twipsy" title="<b>@fat</b>"></a>')
|
71
|
-
.appendTo('#qunit-runoff')
|
72
|
-
.twipsy({html: true})
|
73
|
-
.twipsy('show')
|
74
|
-
|
75
|
-
ok($('.twipsy b').length, 'b tag was inserted')
|
76
|
-
twipsy.twipsy('hide')
|
77
|
-
ok(!$(".twipsy").length, 'twipsy removed')
|
78
|
-
$('#qunit-runoff').empty()
|
79
|
-
})
|
80
|
-
|
81
|
-
})
|
@@ -1,232 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* QUnit - A JavaScript Unit Testing Framework
|
3
|
-
*
|
4
|
-
* http://docs.jquery.com/QUnit
|
5
|
-
*
|
6
|
-
* Copyright (c) 2011 John Resig, Jörn Zaefferer
|
7
|
-
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
8
|
-
* or GPL (GPL-LICENSE.txt) licenses.
|
9
|
-
*/
|
10
|
-
|
11
|
-
/** Font Family and Sizes */
|
12
|
-
|
13
|
-
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
|
14
|
-
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
|
15
|
-
}
|
16
|
-
|
17
|
-
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
18
|
-
#qunit-tests { font-size: smaller; }
|
19
|
-
|
20
|
-
|
21
|
-
/** Resets */
|
22
|
-
|
23
|
-
#qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
|
24
|
-
margin: 0;
|
25
|
-
padding: 0;
|
26
|
-
}
|
27
|
-
|
28
|
-
|
29
|
-
/** Header */
|
30
|
-
|
31
|
-
#qunit-header {
|
32
|
-
padding: 0.5em 0 0.5em 1em;
|
33
|
-
|
34
|
-
color: #8699a4;
|
35
|
-
background-color: #0d3349;
|
36
|
-
|
37
|
-
font-size: 1.5em;
|
38
|
-
line-height: 1em;
|
39
|
-
font-weight: normal;
|
40
|
-
|
41
|
-
border-radius: 15px 15px 0 0;
|
42
|
-
-moz-border-radius: 15px 15px 0 0;
|
43
|
-
-webkit-border-top-right-radius: 15px;
|
44
|
-
-webkit-border-top-left-radius: 15px;
|
45
|
-
}
|
46
|
-
|
47
|
-
#qunit-header a {
|
48
|
-
text-decoration: none;
|
49
|
-
color: #c2ccd1;
|
50
|
-
}
|
51
|
-
|
52
|
-
#qunit-header a:hover,
|
53
|
-
#qunit-header a:focus {
|
54
|
-
color: #fff;
|
55
|
-
}
|
56
|
-
|
57
|
-
#qunit-banner {
|
58
|
-
height: 5px;
|
59
|
-
}
|
60
|
-
|
61
|
-
#qunit-testrunner-toolbar {
|
62
|
-
padding: 0.5em 0 0.5em 2em;
|
63
|
-
color: #5E740B;
|
64
|
-
background-color: #eee;
|
65
|
-
}
|
66
|
-
|
67
|
-
#qunit-userAgent {
|
68
|
-
padding: 0.5em 0 0.5em 2.5em;
|
69
|
-
background-color: #2b81af;
|
70
|
-
color: #fff;
|
71
|
-
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
72
|
-
}
|
73
|
-
|
74
|
-
|
75
|
-
/** Tests: Pass/Fail */
|
76
|
-
|
77
|
-
#qunit-tests {
|
78
|
-
list-style-position: inside;
|
79
|
-
}
|
80
|
-
|
81
|
-
#qunit-tests li {
|
82
|
-
padding: 0.4em 0.5em 0.4em 2.5em;
|
83
|
-
border-bottom: 1px solid #fff;
|
84
|
-
list-style-position: inside;
|
85
|
-
}
|
86
|
-
|
87
|
-
#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
|
88
|
-
display: none;
|
89
|
-
}
|
90
|
-
|
91
|
-
#qunit-tests li strong {
|
92
|
-
cursor: pointer;
|
93
|
-
}
|
94
|
-
|
95
|
-
#qunit-tests li a {
|
96
|
-
padding: 0.5em;
|
97
|
-
color: #c2ccd1;
|
98
|
-
text-decoration: none;
|
99
|
-
}
|
100
|
-
#qunit-tests li a:hover,
|
101
|
-
#qunit-tests li a:focus {
|
102
|
-
color: #000;
|
103
|
-
}
|
104
|
-
|
105
|
-
#qunit-tests ol {
|
106
|
-
margin-top: 0.5em;
|
107
|
-
padding: 0.5em;
|
108
|
-
|
109
|
-
background-color: #fff;
|
110
|
-
|
111
|
-
border-radius: 15px;
|
112
|
-
-moz-border-radius: 15px;
|
113
|
-
-webkit-border-radius: 15px;
|
114
|
-
|
115
|
-
box-shadow: inset 0px 2px 13px #999;
|
116
|
-
-moz-box-shadow: inset 0px 2px 13px #999;
|
117
|
-
-webkit-box-shadow: inset 0px 2px 13px #999;
|
118
|
-
}
|
119
|
-
|
120
|
-
#qunit-tests table {
|
121
|
-
border-collapse: collapse;
|
122
|
-
margin-top: .2em;
|
123
|
-
}
|
124
|
-
|
125
|
-
#qunit-tests th {
|
126
|
-
text-align: right;
|
127
|
-
vertical-align: top;
|
128
|
-
padding: 0 .5em 0 0;
|
129
|
-
}
|
130
|
-
|
131
|
-
#qunit-tests td {
|
132
|
-
vertical-align: top;
|
133
|
-
}
|
134
|
-
|
135
|
-
#qunit-tests pre {
|
136
|
-
margin: 0;
|
137
|
-
white-space: pre-wrap;
|
138
|
-
word-wrap: break-word;
|
139
|
-
}
|
140
|
-
|
141
|
-
#qunit-tests del {
|
142
|
-
background-color: #e0f2be;
|
143
|
-
color: #374e0c;
|
144
|
-
text-decoration: none;
|
145
|
-
}
|
146
|
-
|
147
|
-
#qunit-tests ins {
|
148
|
-
background-color: #ffcaca;
|
149
|
-
color: #500;
|
150
|
-
text-decoration: none;
|
151
|
-
}
|
152
|
-
|
153
|
-
/*** Test Counts */
|
154
|
-
|
155
|
-
#qunit-tests b.counts { color: black; }
|
156
|
-
#qunit-tests b.passed { color: #5E740B; }
|
157
|
-
#qunit-tests b.failed { color: #710909; }
|
158
|
-
|
159
|
-
#qunit-tests li li {
|
160
|
-
margin: 0.5em;
|
161
|
-
padding: 0.4em 0.5em 0.4em 0.5em;
|
162
|
-
background-color: #fff;
|
163
|
-
border-bottom: none;
|
164
|
-
list-style-position: inside;
|
165
|
-
}
|
166
|
-
|
167
|
-
/*** Passing Styles */
|
168
|
-
|
169
|
-
#qunit-tests li li.pass {
|
170
|
-
color: #5E740B;
|
171
|
-
background-color: #fff;
|
172
|
-
border-left: 26px solid #C6E746;
|
173
|
-
}
|
174
|
-
|
175
|
-
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
|
176
|
-
#qunit-tests .pass .test-name { color: #366097; }
|
177
|
-
|
178
|
-
#qunit-tests .pass .test-actual,
|
179
|
-
#qunit-tests .pass .test-expected { color: #999999; }
|
180
|
-
|
181
|
-
#qunit-banner.qunit-pass { background-color: #C6E746; }
|
182
|
-
|
183
|
-
/*** Failing Styles */
|
184
|
-
|
185
|
-
#qunit-tests li li.fail {
|
186
|
-
color: #710909;
|
187
|
-
background-color: #fff;
|
188
|
-
border-left: 26px solid #EE5757;
|
189
|
-
white-space: pre;
|
190
|
-
}
|
191
|
-
|
192
|
-
#qunit-tests > li:last-child {
|
193
|
-
border-radius: 0 0 15px 15px;
|
194
|
-
-moz-border-radius: 0 0 15px 15px;
|
195
|
-
-webkit-border-bottom-right-radius: 15px;
|
196
|
-
-webkit-border-bottom-left-radius: 15px;
|
197
|
-
}
|
198
|
-
|
199
|
-
#qunit-tests .fail { color: #000000; background-color: #EE5757; }
|
200
|
-
#qunit-tests .fail .test-name,
|
201
|
-
#qunit-tests .fail .module-name { color: #000000; }
|
202
|
-
|
203
|
-
#qunit-tests .fail .test-actual { color: #EE5757; }
|
204
|
-
#qunit-tests .fail .test-expected { color: green; }
|
205
|
-
|
206
|
-
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
207
|
-
|
208
|
-
|
209
|
-
/** Result */
|
210
|
-
|
211
|
-
#qunit-testresult {
|
212
|
-
padding: 0.5em 0.5em 0.5em 2.5em;
|
213
|
-
|
214
|
-
color: #2b81af;
|
215
|
-
background-color: #D2E0E6;
|
216
|
-
|
217
|
-
border-bottom: 1px solid white;
|
218
|
-
}
|
219
|
-
|
220
|
-
/** Fixture */
|
221
|
-
|
222
|
-
#qunit-fixture {
|
223
|
-
position: absolute;
|
224
|
-
top: -10000px;
|
225
|
-
left: -10000px;
|
226
|
-
}
|
227
|
-
|
228
|
-
/** Runoff */
|
229
|
-
|
230
|
-
#qunit-runoff {
|
231
|
-
display:none;
|
232
|
-
}
|