Skip to content

Commit

Permalink
initial reorg of tests to unit/functional
Browse files Browse the repository at this point in the history
  • Loading branch information
lbod authored and wkeese committed Jan 31, 2014
1 parent 14b637f commit c610e6b
Show file tree
Hide file tree
Showing 25 changed files with 68 additions and 64 deletions.
4 changes: 2 additions & 2 deletions tests/functional.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Listing of all the infrastructure functional tests
define([
"./TabIndex",
"./KeyNav"
"./functional/TabIndex",
"./functional/KeyNav"
]);
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>KeyNav Tests</title>
<script type="text/javascript" src="./boilerplate.js"></script>
<script type="text/javascript" src="../boilerplate.js"></script>
<script language="JavaScript" type="text/javascript">
var ready = false; // set to true when the test page is ready
require([
Expand Down
2 changes: 1 addition & 1 deletion tests/TabIndex.html → tests/functional/TabIndex.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
display: block;
}
</style>
<script type="text/javascript" src="boilerplate.js"></script>
<script type="text/javascript" src="../boilerplate.js"></script>
<script language="JavaScript" type="text/javascript">
var ready = false; // set to true when the test page is ready
var timeoutInterval = 1000;
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions tests/sauce.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ define({
// Functional test suite(s) to run in each browser once non-functional tests are completed
functionalSuites: [ "delite/tests/functional" ],

reporters : ["console"],

// A regular expression matching URLs to files that should not be included in code coverage analysis
excludeInstrumentation: /^(requirejs|dcl|dojo|delite\/tests)/
});
36 changes: 18 additions & 18 deletions tests/unit.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// Listing of all the infrastructure unit tests
define([
"./Destroyable",
"./DisplayContainer",
"./register",
"./Widget-attr",
"./handlebars",
"./Widget-lifecycle",
"./Widget-placeAt",
"./Widget-utility",
"./HasDropDown",
"./CssState",
"./Container",
"./a11y",
"./Widget-on",
"./Stateful",
"./Selection",
"./StoreMap",
"./Store",
"./Scrollable"
"./unit/Destroyable",
"./unit/DisplayContainer",
"./unit/register",
"./unit/Widget-attr",
"./unit/handlebars",
"./unit/Widget-lifecycle",
"./unit/Widget-placeAt",
"./unit/Widget-utility",
"./unit/HasDropDown",
"./unit/CssState",
"./unit/Container",
"./unit/a11y",
"./unit/Widget-on",
"./unit/Stateful",
"./unit/Selection",
"./unit/StoreMap",
"./unit/Store",
"./unit/Scrollable"
]);
10 changes: 5 additions & 5 deletions tests/Container.js → tests/unit/Container.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
define([
"intern!object",
"intern/chai!assert",
"../a11y",
"../focus",
"../register",
"../Widget",
"../Container"
"delite/a11y",
"delite/focus",
"delite/register",
"delite/Widget",
"delite/Container"
], function (registerSuite, assert, a11y, focus, register, Widget, Container) {
var container, PlainWidget, TestContainer, TestContained, html, zero, two, four;
/*jshint multistr: true */
Expand Down
4 changes: 2 additions & 2 deletions tests/CssState.js → tests/unit/CssState.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ define([
"intern!object",
"intern/chai!assert",
"dojo/dom-class",
"../register",
"../CssState"
"delite/register",
"delite/CssState"
], function (registerSuite, assert, domClass, register, CssState) {
registerSuite({
name: "CssState",
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/DisplayContainer.js → tests/unit/DisplayContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ define([
"intern/chai!assert",
"dojo/on",
"dojo/Deferred",
"../DisplayContainer",
"../Widget",
"../register",
"delite/DisplayContainer",
"delite/Widget",
"delite/register",
"dojo/domReady!"
], function (require, registerSuite, assert, on, Deferred, DisplayContainer, Widget, register) {
var container;
Expand Down
8 changes: 4 additions & 4 deletions tests/HasDropDown.js → tests/unit/HasDropDown.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ define([
"intern/chai!assert",
"dojo/keys",
"dojo/on",
"../register",
"../HasDropDown",
"../Widget",
"./helpers"
"delite/register",
"delite/HasDropDown",
"delite/Widget",
"../helpers"
], function (registerSuite, assert, keys, on, register, HasDropDown, Widget, helpers) {
var container, SimplePopup, SimpleDropDownButton, NonFocusableDropDownButton, popup, dd, ndd;

Expand Down
4 changes: 2 additions & 2 deletions tests/Scrollable.js → tests/unit/Scrollable.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ define([
"delite/register",
"delite/Widget",
"delite/Scrollable",
"./ScrollableTestContainer",
"./Scrollable-shared"
"../ScrollableTestContainer",
"../Scrollable-shared"
], function (dcl, registerSuite, assert, domClass, register, Widget,
Scrollable, ScrollableTestContainer, ScrollableSharedTests) {

Expand Down
4 changes: 2 additions & 2 deletions tests/Selection.js → tests/unit/Selection.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
define([
"intern!object",
"intern/chai!assert",
"../register",
"../Selection"
"delite/register",
"delite/Selection"
], function (registerSuite, assert, register, Selection) {
var C = register("test-selection", [HTMLElement, Selection], {
updateRenderers: function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/Stateful.js → tests/unit/Stateful.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
define([
"intern!object",
"intern/chai!assert",
"../Stateful",
"delite/Stateful",
"dcl/dcl"
], function (registerSuite, assert, Stateful, dcl) {
registerSuite({
Expand Down
4 changes: 3 additions & 1 deletion tests/Store.js → tests/unit/Store.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
define([
"intern!object",
"intern/chai!assert",
"../register", "../Widget", "../Store",
"delite/register",
"delite/Widget",
"delite/Store",
"dojo/store/Observable", "dojo/store/JsonRest", "dojo/store/Memory"
], function (registerSuite, assert, register, Widget, Store, Observable, JsonRest, Memory) {
var C = register("test-store", [HTMLElement, Widget, Store]);
Expand Down
6 changes: 3 additions & 3 deletions tests/StoreMap.js → tests/unit/StoreMap.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
define([
"intern!object",
"intern/chai!assert",
"../register",
"../Widget",
"../StoreMap",
"delite/register",
"delite/Widget",
"delite/StoreMap",
"dojo/store/Observable",
"dojo/store/JsonRest",
"dojo/store/Memory"
Expand Down
4 changes: 2 additions & 2 deletions tests/Widget-attr.js → tests/unit/Widget-attr.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
define([
"intern!object",
"intern/chai!assert",
"../register",
"delite/register",
"dojo/sniff",
"../Widget",
"delite/Widget",
"dojo/domReady!"
], function (registerSuite, assert, register, has, Widget) {
var container;
Expand Down
4 changes: 2 additions & 2 deletions tests/Widget-lifecycle.js → tests/unit/Widget-lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ define([
"intern/chai!assert",
"dojo/aspect",
"dojo/dom-class",
"../register",
"../Widget"
"delite/register",
"delite/Widget"
], function (registerSuite, assert, aspect, domClass, register, Widget) {
var container, TestWidget, w;
var obj = {
Expand Down
4 changes: 2 additions & 2 deletions tests/Widget-on.js → tests/unit/Widget-on.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
define([
"intern!object",
"intern/chai!assert",
"../register",
"../Widget"
"delite/register",
"delite/Widget"
], function (registerSuite, assert, register, Widget) {
var container, html;
/*jshint multistr: true */
Expand Down
4 changes: 2 additions & 2 deletions tests/Widget-placeAt.js → tests/unit/Widget-placeAt.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ define([
"intern!object",
"intern/chai!assert",
"dojo/aspect",
"../register",
"../Widget",
"delite/register",
"delite/Widget",
"deliteful/Button" // TODO: remove dependency on deliteful
], function (registerSuite, assert, aspect, register, Widget, Button) {
var container, SimpleWidget, simple, pane1, pane2, pane3, pane4;
Expand Down
4 changes: 2 additions & 2 deletions tests/Widget-utility.js → tests/unit/Widget-utility.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
define([
"intern!object",
"intern/chai!assert",
"../register",
"../Widget"
"delite/register",
"delite/Widget"
], function (registerSuite, assert, register, Widget) {
var container, html;
/*jshint multistr: true */
Expand Down
4 changes: 2 additions & 2 deletions tests/a11y.js → tests/unit/a11y.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
define([
"intern!object",
"intern/chai!assert",
"../a11y",
"delite/a11y",
"dojo/sniff",
"dojo/text!./resources/a11y.html"
"dojo/text!../resources/a11y.html"
], function (registerSuite, assert, a11y, has, html) {
var container;
registerSuite({
Expand Down
10 changes: 5 additions & 5 deletions tests/handlebars.js → tests/unit/handlebars.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
define([
"intern!object",
"intern/chai!assert",
"../handlebars",
"../register",
"../Widget",
"../handlebars!./templates/SimpleHandleBarsButton.html",
"../handlebars!./templates/HandlebarsButton.html"
"delite/handlebars",
"delite/register",
"delite/Widget",
"delite/handlebars!../templates/SimpleHandleBarsButton.html",
"delite/handlebars!../templates/HandlebarsButton.html"
], function (registerSuite, assert, handlebars, register, Widget, simpleHBTmpl, buttonHBTmpl) {
var container, myButton;
registerSuite({
Expand Down
4 changes: 2 additions & 2 deletions tests/register.js → tests/unit/register.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
define([
"intern!object",
"intern/chai!assert",
"../register",
"../Stateful",
"delite/register",
"delite/Stateful",
"dojo/domReady!"
], function (registerSuite, assert, register, Stateful) {

Expand Down

0 comments on commit c610e6b

Please sign in to comment.