aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/core
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-03 21:43:52 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-03 21:43:52 -0400
commit6fb68568bea4fcaf0caff77363819b3d7c732cd4 (patch)
tree9a869c658b574eda6668fce064ed02c7047c2000 /tests/unit/core
parentcff6b56fd429b0be2e1668a26b362775263f8925 (diff)
downloadjquery-ui-6fb68568bea4fcaf0caff77363819b3d7c732cd4.tar.gz
jquery-ui-6fb68568bea4fcaf0caff77363819b3d7c732cd4.zip
Tests: Cleanup.
Diffstat (limited to 'tests/unit/core')
-rw-r--r--tests/unit/core/core.html40
-rw-r--r--tests/unit/core/selector.js30
2 files changed, 35 insertions, 35 deletions
diff --git a/tests/unit/core/core.html b/tests/unit/core/core.html
index affd094d8..fdde81766 100644
--- a/tests/unit/core/core.html
+++ b/tests/unit/core/core.html
@@ -47,12 +47,12 @@
</map>
<div>
- <input id="visibleAncestor-inputTypeNone" />
- <input type="text" id="visibleAncestor-inputTypeText" />
- <input type="checkbox" id="visibleAncestor-inputTypeCheckbox" />
- <input type="radio" id="visibleAncestor-inputTypeRadio" />
- <input type="button" id="visibleAncestor-inputTypeButton" />
- <input type="hidden" id="visibleAncestor-inputTypeHidden" />
+ <input id="visibleAncestor-inputTypeNone">
+ <input type="text" id="visibleAncestor-inputTypeText">
+ <input type="checkbox" id="visibleAncestor-inputTypeCheckbox">
+ <input type="radio" id="visibleAncestor-inputTypeRadio">
+ <input type="button" id="visibleAncestor-inputTypeButton">
+ <input type="hidden" id="visibleAncestor-inputTypeHidden">
<button id="visibleAncestor-button">x</button>
<select id="visibleAncestor-select">
<option>option</option>
@@ -68,12 +68,12 @@
</div>
<div>
- <input id="disabledElement-inputTypeNone" disabled="disabled" />
- <input type="text" id="disabledElement-inputTypeText" disabled="disabled" />
- <input type="checkbox" id="disabledElement-inputTypeCheckbox" disabled="disabled" />
- <input type="radio" id="disabledElement-inputTypeRadio" disabled="disabled" />
- <input type="button" id="disabledElement-inputTypeButton" disabled="disabled" />
- <input type="hidden" id="disabledElement-inputTypeHidden" disabled="disabled" />
+ <input id="disabledElement-inputTypeNone" disabled="disabled">
+ <input type="text" id="disabledElement-inputTypeText" disabled="disabled">
+ <input type="checkbox" id="disabledElement-inputTypeCheckbox" disabled="disabled">
+ <input type="radio" id="disabledElement-inputTypeRadio" disabled="disabled">
+ <input type="button" id="disabledElement-inputTypeButton" disabled="disabled">
+ <input type="hidden" id="disabledElement-inputTypeHidden" disabled="disabled">
<button id="disabledElement-button" disabled="disabled"></button>
<select id="disabledElement-select" disabled="disabled"></select>
<textarea id="disabledElement-textarea" disabled="disabled"></textarea>
@@ -81,27 +81,27 @@
<div>
<div id="displayNoneAncestor" style="display: none;">
- <input id="displayNoneAncestor-input" />
+ <input id="displayNoneAncestor-input">
<span tabindex="1" id="displayNoneAncestor-span">.</span>
</div>
<div id="visibilityHiddenAncestor" style="visibility: hidden;">
- <input id="visibilityHiddenAncestor-input" />
+ <input id="visibilityHiddenAncestor-input">
<span tabindex="1" id="visibilityHiddenAncestor-span">.</span>
</div>
<span tabindex="1" id="displayNone-span" style="display: none;">.</span>
<span tabindex="1" id="visibilityHidden-span" style="visibility: hidden;">.</span>
- <input id="displayNone-input" style="display: none;" />
- <input id="visibilityHidden-input" style="visibility: hidden;" />
+ <input id="displayNone-input" style="display: none;">
+ <input id="visibilityHidden-input" style="visibility: hidden;">
</div>
<div>
- <input id="inputTabindex0" tabindex="0" />
- <input id="inputTabindex10" tabindex="10" />
- <input id="inputTabindex-1" tabindex="-1" />
- <input id="inputTabindex-50" tabindex="-50" />
+ <input id="inputTabindex0" tabindex="0">
+ <input id="inputTabindex10" tabindex="10">
+ <input id="inputTabindex-1" tabindex="-1">
+ <input id="inputTabindex-50" tabindex="-50">
<span id="spanTabindex0" tabindex="0">.</span>
<span id="spanTabindex10" tabindex="10">.</span>
diff --git a/tests/unit/core/selector.js b/tests/unit/core/selector.js
index 44888ad88..de5be3da1 100644
--- a/tests/unit/core/selector.js
+++ b/tests/unit/core/selector.js
@@ -32,49 +32,49 @@ test("data", function() {
ok(!el.is(':data(test)'), msg);
}
- el = $('<div/>');
+ el = $('<div>');
shouldNotHaveData('data never set');
- el = $('<div/>').data('test', null);
+ el = $('<div>').data('test', null);
shouldNotHaveData('data is null');
- el = $('<div/>').data('test', true);
+ el = $('<div>').data('test', true);
shouldHaveData('data set to true');
- el = $('<div/>').data('test', false);
+ el = $('<div>').data('test', false);
shouldNotHaveData('data set to false');
- el = $('<div/>').data('test', 0);
+ el = $('<div>').data('test', 0);
shouldNotHaveData('data set to 0');
- el = $('<div/>').data('test', 1);
+ el = $('<div>').data('test', 1);
shouldHaveData('data set to 1');
- el = $('<div/>').data('test', '');
+ el = $('<div>').data('test', '');
shouldNotHaveData('data set to empty string');
- el = $('<div/>').data('test', 'foo');
+ el = $('<div>').data('test', 'foo');
shouldHaveData('data set to string');
- el = $('<div/>').data('test', []);
+ el = $('<div>').data('test', []);
shouldHaveData('data set to empty array');
- el = $('<div/>').data('test', [1]);
+ el = $('<div>').data('test', [1]);
shouldHaveData('data set to array');
- el = $('<div/>').data('test', {});
+ el = $('<div>').data('test', {});
shouldHaveData('data set to empty object');
- el = $('<div/>').data('test', {foo: 'bar'});
+ el = $('<div>').data('test', {foo: 'bar'});
shouldHaveData('data set to object');
- el = $('<div/>').data('test', new Date());
+ el = $('<div>').data('test', new Date());
shouldHaveData('data set to date');
- el = $('<div/>').data('test', /test/);
+ el = $('<div>').data('test', /test/);
shouldHaveData('data set to regexp');
- el = $('<div/>').data('test', function() {});
+ el = $('<div>').data('test', function() {});
shouldHaveData('data set to function');
});