Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
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
Eugene Shen
todomvc
Commits
aaff5c8f
Commit
aaff5c8f
authored
Nov 02, 2015
by
Sam Saccone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Fix test lint errors
parent
3e8479e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
tests/memory.js
tests/memory.js
+6
-4
No files found.
tests/memory.js
View file @
aaff5c8f
'
use strict
'
;
var
drool
=
require
(
'
drool
'
);
var
drool
=
require
(
'
drool
'
);
var
frameworkPathLookup
=
require
(
'
./framework-path-lookup
'
);
var
frameworkPathLookup
=
require
(
'
./framework-path-lookup
'
);
var
argv
=
require
(
'
optimist
'
).
default
(
'
laxMode
'
,
false
).
default
(
'
browser
'
,
'
chrome
'
).
argv
;
var
argv
=
require
(
'
optimist
'
).
default
(
'
laxMode
'
,
false
).
default
(
'
browser
'
,
'
chrome
'
).
argv
;
...
@@ -18,7 +20,7 @@ function idApp() {
...
@@ -18,7 +20,7 @@ function idApp() {
.
thenCatch
(
function
()
{
return
false
;
});
.
thenCatch
(
function
()
{
return
false
;
});
}
}
function
newTodoSelector
(
name
)
{
function
newTodoSelector
()
{
return
idApp
().
then
(
function
(
isId
)
{
return
idApp
().
then
(
function
(
isId
)
{
if
(
isId
)
{
if
(
isId
)
{
return
'
#new-todo
'
;
return
'
#new-todo
'
;
...
@@ -28,7 +30,7 @@ function newTodoSelector(name) {
...
@@ -28,7 +30,7 @@ function newTodoSelector(name) {
});
});
}
}
function
listSelector
(
name
)
{
function
listSelector
()
{
return
idApp
().
then
(
function
(
isId
)
{
return
idApp
().
then
(
function
(
isId
)
{
if
(
isId
)
{
if
(
isId
)
{
return
'
#todo-list li
'
;
return
'
#todo-list li
'
;
...
@@ -55,7 +57,7 @@ list.forEach(function (framework) {
...
@@ -55,7 +57,7 @@ list.forEach(function (framework) {
return
driver
.
findElement
(
drool
.
webdriver
.
By
.
css
(
listSelector
(
name
))).
isDisplayed
()
return
driver
.
findElement
(
drool
.
webdriver
.
By
.
css
(
listSelector
(
name
))).
isDisplayed
()
.
then
(
function
()
{
.
then
(
function
()
{
return
true
;
return
true
;
})
})
;
});
});
},
10000
);
},
10000
);
...
@@ -87,7 +89,7 @@ list.forEach(function (framework) {
...
@@ -87,7 +89,7 @@ list.forEach(function (framework) {
}
}
}.
bind
(
framework
.
name
)
}.
bind
(
framework
.
name
)
},
driver
)
},
driver
)
;
});
});
driver
.
quit
();
driver
.
quit
();
...
...
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