sproutcore 1.5.0.rc.1 → 1.5.0.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/VERSION.yml +1 -1
- data/lib/frameworks/sproutcore/Buildfile +9 -4
- data/lib/frameworks/sproutcore/README.md +1 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/data.plist +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image10.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image11.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image13.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image15.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image16.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image17.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image18.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image19.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image22.tiff +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image23.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image24.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image25.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image30.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image31.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image8.png +0 -0
- data/lib/frameworks/sproutcore/design/{TestRunner_Design.gaffle → TestRunner_Design.graffle}/image9.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +23 -25
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +73 -82
- data/lib/frameworks/sproutcore/frameworks/core_foundation/core.js +1 -3
- data/lib/frameworks/sproutcore/frameworks/{handlebars/extensions → core_foundation/ext/handlebars}/bind.js +110 -7
- data/lib/frameworks/sproutcore/frameworks/{handlebars/extensions → core_foundation/ext/handlebars}/collection.js +10 -7
- data/lib/frameworks/sproutcore/frameworks/{handlebars/extensions → core_foundation/ext/handlebars}/localization.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/{handlebars/extensions → core_foundation/ext/handlebars}/view.js +4 -2
- data/lib/frameworks/sproutcore/frameworks/{handlebars/extensions.js → core_foundation/ext/handlebars.js} +0 -57
- data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/object.js +1 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +11 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/main.js +1 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +2 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/application.js +14 -16
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/builder.js +29 -37
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/datetime.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +71 -19
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/locale.js +3 -7
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/page.js +5 -7
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/selection_set.js +1 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +4 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/timer.js +21 -27
- data/lib/frameworks/sproutcore/frameworks/core_foundation/system/utils.js +3 -5
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/controllers/object/single_enumerable_case.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +93 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/convertLayouts.js +13 -11
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layer.js +2 -6
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/layoutStyle.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/theme.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/view/view.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template.js +6 -2
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +87 -32
- data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +21 -25
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +15 -19
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +114 -167
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +4 -4
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_attribute.js +4 -6
- data/lib/frameworks/sproutcore/frameworks/datastore/models/children_attribute.js +2 -4
- data/lib/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +7 -7
- data/lib/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +18 -20
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +74 -72
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +36 -29
- data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +97 -78
- data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +117 -97
- data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +13 -13
- data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +111 -108
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +231 -198
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +146 -145
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/builders.js +21 -21
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +49 -50
- data/lib/frameworks/sproutcore/frameworks/datetime/{system → frameworks/core/system}/datetime.js +122 -171
- data/lib/frameworks/sproutcore/frameworks/datetime/{tests → frameworks/core/tests}/system/datetime.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/{resources → frameworks/localized/resources}/strings.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/datetime/frameworks/localized/system/datetime.js +91 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/core.js +18 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +23 -16
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +56 -45
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_group.js +5 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +21 -19
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +82 -77
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +18 -12
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +29 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +148 -107
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +31 -16
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +16 -13
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/palette.js +38 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +37 -25
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +247 -144
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +155 -100
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +39 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js +9 -6
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +18 -22
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +27 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +77 -44
- data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +68 -33
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +168 -110
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +37 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +187 -123
- data/lib/frameworks/sproutcore/frameworks/desktop/views/date_field.js +73 -49
- data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +34 -9
- data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +51 -14
- data/lib/frameworks/sproutcore/frameworks/desktop/views/grid.js +38 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/views/image_button.js +15 -9
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +54 -34
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +113 -42
- data/lib/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +84 -28
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +67 -51
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +122 -35
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation.js +40 -16
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation_bar.js +28 -18
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +27 -31
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +118 -68
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +117 -61
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scene.js +23 -16
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +241 -77
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +134 -69
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segment.js +107 -25
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +125 -48
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +165 -69
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +73 -24
- data/lib/frameworks/sproutcore/frameworks/desktop/views/separator.js +19 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +16 -4
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list_group.js +14 -7
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +43 -37
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +8 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/stacked.js +14 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +16 -2
- data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/thumb.js +13 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +58 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +34 -18
- data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +25 -9
- data/lib/frameworks/sproutcore/frameworks/desktop/views/workspace.js +70 -36
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +10 -5
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +28 -17
- data/lib/frameworks/sproutcore/frameworks/foundation/delegates/inline_text_field.js +41 -43
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/pinch.js +42 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/swipe.js +94 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/tap.js +41 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_mixin.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +18 -9
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +7 -5
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +7 -8
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_value_support.js +34 -24
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +48 -18
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_text_field.js +1 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils/misc.js +1 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +0 -11
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/README.md +24 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/package.json +21 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/qunit/qunit.css +215 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/qunit/qunit.js +1442 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/headless.html +24 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/index.html +18 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/logs.html +17 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/logs.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/same.js +1421 -0
- data/lib/frameworks/sproutcore/frameworks/qunit/test/test.js +314 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +369 -60
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +2 -405
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +3 -9
- data/lib/frameworks/sproutcore/frameworks/runtime/private/property_chain.js +50 -45
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +20 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +0 -9
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/guidFor.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array.js +36 -14
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable/enumerable.js +0 -34
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable/enumerable_observers.js +50 -61
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +45 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/bindings.js +5 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/enhance.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/testing/core.js +3 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +0 -1
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +0 -1
- data/lib/gen/html_app/templates/apps/@target_name@/@target_name@.js +1 -1
- data/vendor/chance/lib/chance/instance.rb +8 -6
- metadata +41 -31
- data/lib/frameworks/sproutcore/frameworks/testing/jquery.js +0 -3559
- data/lib/frameworks/sproutcore/frameworks/testing/qunit.js +0 -827
data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js
CHANGED
@@ -105,17 +105,6 @@ module("Test the beginEditing() function of SC.InlineTextFieldView", {
|
|
105
105
|
}
|
106
106
|
});
|
107
107
|
|
108
|
-
test("fails when options missing",
|
109
|
-
function() {
|
110
|
-
|
111
|
-
try {
|
112
|
-
SC.InlineTextFieldView.beginEditing();
|
113
|
-
ok(NO, "should fail if parameters missing");
|
114
|
-
} catch(e) {
|
115
|
-
ok(YES, "should fail if parameters missing");
|
116
|
-
}
|
117
|
-
});
|
118
|
-
|
119
108
|
test("fails when required options are missing",
|
120
109
|
function() {
|
121
110
|
try {
|
@@ -5,7 +5,7 @@
|
|
5
5
|
// License: Licensed under MIT license (see license.js)
|
6
6
|
// ==========================================================================
|
7
7
|
|
8
|
-
|
8
|
+
sc_require('validators/validator');
|
9
9
|
|
10
10
|
/**
|
11
11
|
This validates a SC.DateTime, used in SC.DateFieldView.
|
@@ -1051,6 +1051,14 @@ SC.TextFieldView = SC.FieldView.extend(SC.StaticLayout, SC.Editable,
|
|
1051
1051
|
return sc_super();
|
1052
1052
|
},
|
1053
1053
|
|
1054
|
+
touchStart: function(evt) {
|
1055
|
+
return this.mouseDown(evt);
|
1056
|
+
},
|
1057
|
+
|
1058
|
+
touchEnd: function(evt) {
|
1059
|
+
return this.mouseUp(evt);
|
1060
|
+
},
|
1061
|
+
|
1054
1062
|
/**
|
1055
1063
|
Adds mouse wheel support for textareas.
|
1056
1064
|
*/
|
@@ -0,0 +1,24 @@
|
|
1
|
+
[QUnit](http://docs.jquery.com/QUnit) - A JavaScript Unit Testing framework.
|
2
|
+
================================
|
3
|
+
|
4
|
+
QUnit is a powerful, easy-to-use, JavaScript test suite. It's used by the jQuery
|
5
|
+
project to test its code and plugins but is capable of testing any generic
|
6
|
+
JavaScript code (and even capable of testing JavaScript code on the server-side).
|
7
|
+
|
8
|
+
QUnit is especially useful for regression testing: Whenever a bug is reported,
|
9
|
+
write a test that asserts the existence of that particular bug. Then fix it and
|
10
|
+
commit both. Every time you work on the code again, run the tests. If the bug
|
11
|
+
comes up again - a regression - you'll spot it immediately and know how to fix
|
12
|
+
it, because you know what code you just changed.
|
13
|
+
|
14
|
+
Having good unit test coverage makes safe refactoring easy and cheap. You can
|
15
|
+
run the tests after each small refactoring step and always know what change
|
16
|
+
broke something.
|
17
|
+
|
18
|
+
QUnit is similar to other unit testing frameworks like JUnit, but makes use of
|
19
|
+
the features JavaScript provides and helps with testing code in the browser, eg.
|
20
|
+
with it's stop/start facilities for testing asynchronous code.
|
21
|
+
|
22
|
+
If you are interested in helping developing QUnit, you are in the right place.
|
23
|
+
For related discussions, visit the
|
24
|
+
[QUnit and Testing forum](http://forum.jquery.com/qunit-and-testing).
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"name": "qunit",
|
3
|
+
"author": {
|
4
|
+
"name": "John Resig",
|
5
|
+
"email": "jeresig@gmail.com",
|
6
|
+
"url": "http://ejohn.org/"
|
7
|
+
},
|
8
|
+
"maintainer": {
|
9
|
+
"name": "Jörn Zaefferer",
|
10
|
+
"email": "joern.zaefferer@googlemail.com",
|
11
|
+
"url": "http://bassistance.de/"
|
12
|
+
},
|
13
|
+
"url": "http://docs.jquery.com/QUnit",
|
14
|
+
"license": {
|
15
|
+
"name": "MIT",
|
16
|
+
"url": "http://www.opensource.org/licenses/mit-license.php"
|
17
|
+
},
|
18
|
+
"description": "An easy-to-use JavaScript Unit Testing framework.",
|
19
|
+
"keywords": [ "testing", "unit", "jquery" ],
|
20
|
+
"lib": "qunit"
|
21
|
+
}
|
@@ -0,0 +1,215 @@
|
|
1
|
+
/** Font Family and Sizes */
|
2
|
+
|
3
|
+
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
|
4
|
+
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
|
5
|
+
}
|
6
|
+
|
7
|
+
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
8
|
+
#qunit-tests { font-size: smaller; }
|
9
|
+
|
10
|
+
|
11
|
+
/** Resets */
|
12
|
+
|
13
|
+
#qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
|
14
|
+
margin: 0;
|
15
|
+
padding: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
|
19
|
+
/** Header */
|
20
|
+
|
21
|
+
#qunit-header {
|
22
|
+
padding: 0.5em 0 0.5em 1em;
|
23
|
+
|
24
|
+
color: #8699a4;
|
25
|
+
background-color: #0d3349;
|
26
|
+
|
27
|
+
font-size: 1.5em;
|
28
|
+
line-height: 1em;
|
29
|
+
font-weight: normal;
|
30
|
+
|
31
|
+
border-radius: 15px 15px 0 0;
|
32
|
+
-moz-border-radius: 15px 15px 0 0;
|
33
|
+
-webkit-border-top-right-radius: 15px;
|
34
|
+
-webkit-border-top-left-radius: 15px;
|
35
|
+
}
|
36
|
+
|
37
|
+
#qunit-header a {
|
38
|
+
text-decoration: none;
|
39
|
+
color: #c2ccd1;
|
40
|
+
}
|
41
|
+
|
42
|
+
#qunit-header a:hover,
|
43
|
+
#qunit-header a:focus {
|
44
|
+
color: #fff;
|
45
|
+
}
|
46
|
+
|
47
|
+
#qunit-banner {
|
48
|
+
height: 5px;
|
49
|
+
}
|
50
|
+
|
51
|
+
#qunit-testrunner-toolbar {
|
52
|
+
padding: 0.5em 0 0.5em 2em;
|
53
|
+
color: #5E740B;
|
54
|
+
background-color: #eee;
|
55
|
+
}
|
56
|
+
|
57
|
+
#qunit-userAgent {
|
58
|
+
padding: 0.5em 0 0.5em 2.5em;
|
59
|
+
background-color: #2b81af;
|
60
|
+
color: #fff;
|
61
|
+
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
62
|
+
}
|
63
|
+
|
64
|
+
|
65
|
+
/** Tests: Pass/Fail */
|
66
|
+
|
67
|
+
#qunit-tests {
|
68
|
+
list-style-position: inside;
|
69
|
+
}
|
70
|
+
|
71
|
+
#qunit-tests li {
|
72
|
+
padding: 0.4em 0.5em 0.4em 2.5em;
|
73
|
+
border-bottom: 1px solid #fff;
|
74
|
+
list-style-position: inside;
|
75
|
+
}
|
76
|
+
|
77
|
+
#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
|
78
|
+
display: none;
|
79
|
+
}
|
80
|
+
|
81
|
+
#qunit-tests li strong {
|
82
|
+
cursor: pointer;
|
83
|
+
}
|
84
|
+
|
85
|
+
#qunit-tests li a {
|
86
|
+
padding: 0.5em;
|
87
|
+
color: #c2ccd1;
|
88
|
+
text-decoration: none;
|
89
|
+
}
|
90
|
+
#qunit-tests li a:hover,
|
91
|
+
#qunit-tests li a:focus {
|
92
|
+
color: #000;
|
93
|
+
}
|
94
|
+
|
95
|
+
#qunit-tests ol {
|
96
|
+
margin-top: 0.5em;
|
97
|
+
padding: 0.5em;
|
98
|
+
|
99
|
+
background-color: #fff;
|
100
|
+
|
101
|
+
border-radius: 15px;
|
102
|
+
-moz-border-radius: 15px;
|
103
|
+
-webkit-border-radius: 15px;
|
104
|
+
|
105
|
+
box-shadow: inset 0px 2px 13px #999;
|
106
|
+
-moz-box-shadow: inset 0px 2px 13px #999;
|
107
|
+
-webkit-box-shadow: inset 0px 2px 13px #999;
|
108
|
+
}
|
109
|
+
|
110
|
+
#qunit-tests table {
|
111
|
+
border-collapse: collapse;
|
112
|
+
margin-top: .2em;
|
113
|
+
}
|
114
|
+
|
115
|
+
#qunit-tests th {
|
116
|
+
text-align: right;
|
117
|
+
vertical-align: top;
|
118
|
+
padding: 0 .5em 0 0;
|
119
|
+
}
|
120
|
+
|
121
|
+
#qunit-tests td {
|
122
|
+
vertical-align: top;
|
123
|
+
}
|
124
|
+
|
125
|
+
#qunit-tests pre {
|
126
|
+
margin: 0;
|
127
|
+
white-space: pre-wrap;
|
128
|
+
word-wrap: break-word;
|
129
|
+
}
|
130
|
+
|
131
|
+
#qunit-tests del {
|
132
|
+
background-color: #e0f2be;
|
133
|
+
color: #374e0c;
|
134
|
+
text-decoration: none;
|
135
|
+
}
|
136
|
+
|
137
|
+
#qunit-tests ins {
|
138
|
+
background-color: #ffcaca;
|
139
|
+
color: #500;
|
140
|
+
text-decoration: none;
|
141
|
+
}
|
142
|
+
|
143
|
+
/*** Test Counts */
|
144
|
+
|
145
|
+
#qunit-tests b.counts { color: black; }
|
146
|
+
#qunit-tests b.passed { color: #5E740B; }
|
147
|
+
#qunit-tests b.failed { color: #710909; }
|
148
|
+
|
149
|
+
#qunit-tests li li {
|
150
|
+
margin: 0.5em;
|
151
|
+
padding: 0.4em 0.5em 0.4em 0.5em;
|
152
|
+
background-color: #fff;
|
153
|
+
border-bottom: none;
|
154
|
+
list-style-position: inside;
|
155
|
+
}
|
156
|
+
|
157
|
+
/*** Passing Styles */
|
158
|
+
|
159
|
+
#qunit-tests li li.pass {
|
160
|
+
color: #5E740B;
|
161
|
+
background-color: #fff;
|
162
|
+
border-left: 26px solid #C6E746;
|
163
|
+
}
|
164
|
+
|
165
|
+
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
|
166
|
+
#qunit-tests .pass .test-name { color: #366097; }
|
167
|
+
|
168
|
+
#qunit-tests .pass .test-actual,
|
169
|
+
#qunit-tests .pass .test-expected { color: #999999; }
|
170
|
+
|
171
|
+
#qunit-banner.qunit-pass { background-color: #C6E746; }
|
172
|
+
|
173
|
+
/*** Failing Styles */
|
174
|
+
|
175
|
+
#qunit-tests li li.fail {
|
176
|
+
color: #710909;
|
177
|
+
background-color: #fff;
|
178
|
+
border-left: 26px solid #EE5757;
|
179
|
+
}
|
180
|
+
|
181
|
+
#qunit-tests > li:last-child {
|
182
|
+
border-radius: 0 0 15px 15px;
|
183
|
+
-moz-border-radius: 0 0 15px 15px;
|
184
|
+
-webkit-border-bottom-right-radius: 15px;
|
185
|
+
-webkit-border-bottom-left-radius: 15px;
|
186
|
+
}
|
187
|
+
|
188
|
+
#qunit-tests .fail { color: #000000; background-color: #EE5757; }
|
189
|
+
#qunit-tests .fail .test-name,
|
190
|
+
#qunit-tests .fail .module-name { color: #000000; }
|
191
|
+
|
192
|
+
#qunit-tests .fail .test-actual { color: #EE5757; }
|
193
|
+
#qunit-tests .fail .test-expected { color: green; }
|
194
|
+
|
195
|
+
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
196
|
+
|
197
|
+
|
198
|
+
/** Result */
|
199
|
+
|
200
|
+
#qunit-testresult {
|
201
|
+
padding: 0.5em 0.5em 0.5em 2.5em;
|
202
|
+
|
203
|
+
color: #2b81af;
|
204
|
+
background-color: #D2E0E6;
|
205
|
+
|
206
|
+
border-bottom: 1px solid white;
|
207
|
+
}
|
208
|
+
|
209
|
+
/** Fixture */
|
210
|
+
|
211
|
+
#qunit-fixture {
|
212
|
+
position: absolute;
|
213
|
+
top: -10000px;
|
214
|
+
left: -10000px;
|
215
|
+
}
|