Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
rjs_json_form
Commits
4fb21029
Commit
4fb21029
authored
Aug 01, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests remove schema_test.js
parent
8c5b8f6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
60 deletions
+0
-60
test/index.html
test/index.html
+0
-1
test/schema_test.js
test/schema_test.js
+0
-59
No files found.
test/index.html
View file @
4fb21029
...
...
@@ -9,7 +9,6 @@
<script
src=
"../renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"../node_modules/grunt-contrib-qunit/test/libs/qunit.js"
type=
"text/javascript"
></script>
<script
src=
"../node_modules/sinon/pkg/sinon.js"
type=
"text/javascript"
></script>
<script
src=
"schema_test.js"
type=
"text/javascript"
></script>
<script
src=
"jsonform_test.js"
type=
"text/javascript"
></script>
</head>
<body>
...
...
test/schema_test.js
deleted
100644 → 0
View file @
8c5b8f6e
/*jslint nomen: true*/
/*global console, RSVP, renderJS, QUnit, window, document*/
(
function
(
document
,
renderJS
,
QUnit
)
{
"
use strict
"
;
var
test
=
QUnit
.
test
,
stop
=
QUnit
.
stop
,
start
=
QUnit
.
start
,
ok
=
QUnit
.
ok
,
expect
=
QUnit
.
expect
,
// equal = QUnit.equal,
// throws = QUnit.throws,
// deepEqual = QUnit.deepEqual,
module
=
QUnit
.
module
,
// notEqual = QUnit.notEqual,
root_gadget_defer
=
RSVP
.
defer
(),
jsonform_url
=
'
../jsonform.gadget.html
'
;
window
.
module
=
undefined
;
// Keep track of the root gadget
renderJS
(
window
)
.
ready
(
function
()
{
root_gadget_defer
.
resolve
(
this
);
});
/////////////////////////////////////////////////////////////////
// declareGadget
/////////////////////////////////////////////////////////////////
module
(
"
schema.declareGadget
"
,
{
setup
:
function
()
{
renderJS
.
clearGadgetKlassList
();
}
});
test
(
'
JSON Schema gadget can be loaded
'
,
function
()
{
stop
();
expect
(
1
);
root_gadget_defer
.
promise
.
then
(
function
(
root_gadget
)
{
return
root_gadget
.
declareGadget
(
jsonform_url
,
{
element
:
document
.
querySelector
(
'
#qunit-fixture
'
)
}
);
})
.
then
(
function
(
gadget
)
{
ok
(
true
,
gadget
);
})
.
fail
(
function
(
error
)
{
ok
(
false
,
error
);
console
.
warn
(
error
);
throw
error
;
})
.
always
(
function
()
{
start
();
});
});
}(
document
,
renderJS
,
QUnit
));
Write
Preview
Markdown
is supported
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