Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
bc61f83e
Commit
bc61f83e
authored
Apr 26, 2016
by
Rafael Ostertag
Browse files
Fixed jasmine tests.
parent
19a315ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/jasmine/SpecRunner.html
View file @
bc61f83e
...
...
@@ -24,7 +24,7 @@
<!-- include spec files here... -->
<script
src=
"spec/HelperFunctionListSpec.js"
></script>
<script
src=
"spec/ElementFormGroupSpec.js"
></script>
<script
src=
"spec/ElementTextSpec.js"
></script>
<script
src=
"spec/ElementText
ual
Spec.js"
></script>
<script
src=
"spec/ElementRadioSpec.js"
></script>
<script
src=
"spec/ElementSelectSpec.js"
></script>
<script
src=
"spec/ElementCheckboxSpec.js"
></script>
...
...
tests/jasmine/spec/ElementSpec.js
View file @
bc61f83e
...
...
@@ -19,7 +19,7 @@ describe('Element namespace function getElement()', function () {
it
(
"
should get the proper element instance for text
"
,
function
()
{
var
element
=
QfqNS
.
Element
.
getElement
(
'
personHandle
'
);
expect
(
element
instanceof
QfqNS
.
Element
.
Text
).
toBe
(
true
);
expect
(
element
instanceof
QfqNS
.
Element
.
Text
ual
).
toBe
(
true
);
});
it
(
"
should get the proper element instance for checkbox
"
,
function
()
{
...
...
tests/jasmine/spec/ElementTextSpec.js
→
tests/jasmine/spec/ElementText
ual
Spec.js
View file @
bc61f83e
...
...
@@ -16,12 +16,12 @@ describe("Element Text", function () {
beforeAll
(
function
()
{
$textInput
=
$
(
"
input[name='personHandle']
"
);
textInput
=
new
QfqNS
.
Element
.
Text
(
$textInput
);
textInput
=
new
QfqNS
.
Element
.
Text
ual
(
$textInput
);
});
it
(
"
should throw on wrong type
"
,
function
()
{
expect
(
function
()
{
new
QfqNS
.
Element
.
Text
(
$
(
"
input[name='gender']
"
));
new
QfqNS
.
Element
.
Text
ual
(
$
(
"
input[name='gender']
"
));
}).
toThrow
();
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment