Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
c2a3491a
Commit
c2a3491a
authored
Mar 28, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: added testbed first version
parent
4ffed0f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
test/setup/rsvp-testbed.js
test/setup/rsvp-testbed.js
+5
-18
No files found.
test/setup/rsvp-testbed.js
View file @
c2a3491a
...
...
@@ -17,30 +17,17 @@
// > view ... default = QUNIT runner
// > Also we need to parse HTML old and new, old having <section> and <test>
// > new I would prefer just having tests. For old, how do we get screenshots?
//
(
function
(
$
)
{
$
.
testHelper
.
extend
({
"
parseTest
"
:
function
(
str
)
{
var
i
,
l
,
elem
,
parsed
=
$
.
parseHTML
(
str
);
l
=
parsed
.
length
;
for
(
i
=
0
;
i
<
l
;
i
+=
1
)
{
elem
=
parsed
[
i
];
switch
(
elem
.
tagName
)
{
case
"
TEST
"
:
break
;
case
"
SECTION
"
:
break
;
}
}
}
(
function
(
$
)
{
});
$
.
testToolBox
=
{
};
})(
jQuery
);
...
...
@@ -88,7 +75,7 @@
return
first
;
};
testContain
=
for
(
i
=
0
;
i
<
l
;
i
+=
0
{
elem
=
elems
[
i
];
...
...
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