Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
renderjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
renderjs
Commits
27bc8391
Commit
27bc8391
authored
Sep 18, 2014
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that iframe can catch service errors.
parent
00c36f64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
test/embedded.js
test/embedded.js
+3
-0
test/renderjs_test.js
test/renderjs_test.js
+8
-0
No files found.
test/embedded.js
View file @
27bc8391
...
...
@@ -26,6 +26,9 @@
.
declareMethod
(
'
wasServiceStarted
'
,
function
()
{
return
service_started
;
})
.
declareMethod
(
'
canReportServiceError
'
,
function
()
{
return
(
this
.
aq_reportServiceError
!==
undefined
);
})
.
declareMethod
(
'
isSubGadgetDictInitialize
'
,
function
()
{
return
((
this
.
hasOwnProperty
(
"
__sub_gadget_dict
"
))
&&
(
JSON
.
stringify
(
this
.
__sub_gadget_dict
)
===
"
{}
"
));
...
...
test/renderjs_test.js
View file @
27bc8391
...
...
@@ -3262,6 +3262,14 @@
equal
(
result
,
true
);
})
// Check that service error can be reported
.
push
(
function
()
{
return
new_gadget
.
canReportServiceError
();
})
.
push
(
function
(
result
)
{
equal
(
result
,
true
);
})
// Custom method accept parameter
// and return value
.
push
(
function
()
{
...
...
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