Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
25888cb0
Commit
25888cb0
authored
Aug 16, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PhanthomJS draft implementation.
parent
936994b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
+20
-0
No files found.
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
View file @
25888cb0
...
@@ -201,6 +201,26 @@ user_pref("capability.principal.codebase.p1.id", "http://%s:%s");
...
@@ -201,6 +201,26 @@ user_pref("capability.principal.codebase.p1.id", "http://%s:%s");
user_pref
(
"capability.principal.codebase.p1.subjectName"
,
""
);
""" %
\
user_pref
(
"capability.principal.codebase.p1.subjectName"
,
""
);
""" %
\
(self.host, self.port)
(self.host, self.port)
class PhantomJS(Browser):
def _createRunJS(self):
run_js = """
var
page
=
new
WebPage
(),
address
;
address
=
phantom
.
args
[
0
];
page
.
open
(
address
,
function
(
status
)
{
if
(
status
!==
'success'
)
{
console
.
log
(
'FAIL to load the address'
);
}
else
{
console
.
log
(
'SUCCESS load the address'
);
}
phantom
.
exit
();
});
"""
return self._createFile('run.js', run_js)
def _run(self, url):
self._runCommand(("phantomjs", "phantomjs", self._createRunJS(), url))
class FunctionalTestRunner:
class FunctionalTestRunner:
...
...
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