Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
renderjs
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
Romain Courteaud
renderjs
Commits
1cdd261f
Commit
1cdd261f
authored
Oct 18, 2021
by
Romain Courteaud
Committed by
Gabriel Monnerat
Oct 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check propagation of acquisitionerror
parent
617e6614
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
test/embedded.js
test/embedded.js
+7
-1
test/renderjs_test.js
test/renderjs_test.js
+1
-6
No files found.
test/embedded.js
View file @
1cdd261f
...
@@ -110,7 +110,13 @@
...
@@ -110,7 +110,13 @@
.
declareAcquiredMethod
(
'
plugErrorAcquire
'
,
.
declareAcquiredMethod
(
'
plugErrorAcquire
'
,
'
acquireMethodRequestedWithAcquisitionError
'
)
'
acquireMethodRequestedWithAcquisitionError
'
)
.
declareMethod
(
'
callErrorAcquire
'
,
function
(
param1
,
param2
)
{
.
declareMethod
(
'
callErrorAcquire
'
,
function
(
param1
,
param2
)
{
return
this
.
plugErrorAcquire
(
param1
,
param2
);
return
this
.
plugErrorAcquire
(
param1
,
param2
)
.
push
(
undefined
,
function
(
error
)
{
if
(
error
instanceof
renderJS
.
AcquisitionError
)
{
throw
error
;
}
throw
new
Error
(
'
Expected AcquisitionError:
'
+
error
);
});
})
})
.
declareMethod
(
'
triggerMethodToCancel
'
,
function
()
{
.
declareMethod
(
'
triggerMethodToCancel
'
,
function
()
{
return
new
RSVP
.
Promise
(
function
()
{
return
new
RSVP
.
Promise
(
function
()
{
...
...
test/renderjs_test.js
View file @
1cdd261f
...
@@ -5840,12 +5840,7 @@
...
@@ -5840,12 +5840,7 @@
ok
(
false
,
result
);
ok
(
false
,
result
);
})
})
.
push
(
undefined
,
function
(
error
)
{
.
push
(
undefined
,
function
(
error
)
{
equal
(
ok
(
error
instanceof
renderJS
.
AcquisitionError
,
error
);
error
,
"
AcquisitionError: Can not handle
"
+
"
acquireMethodRequestedWithAcquisitionError
"
,
error
);
})
})
// cancel call is correctly propagated by declareMethod
// cancel call is correctly propagated by declareMethod
...
...
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