Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
7619c01f
Commit
7619c01f
authored
Jan 13, 2016
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live_test_gadget: Tolerate errors in AJAX requests
For example when zope is restarting
parent
d882eac1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/gadget_live_tests.js.xml
...plateItem/portal_skins/erp5_core/gadget_live_tests.js.xml
+8
-4
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/gadget_live_tests.js.xml
View file @
7619c01f
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts526
69278.59
</string>
</value>
<value>
<string>
ts526
70931.35
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
...
...
@@ -22,7 +22,7 @@
<key>
<string>
data
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global window, rJS, jIO, RSVP, location, document, FormData */\n
/*global window, rJS, jIO, RSVP, location, document, FormData
, console
*/\n
/*jslint indent: 2, maxlen: 80, nomen: true */\n
(function (rJS, jIO, RSVP, window, document, FormData) {\n
"use strict";\n
...
...
@@ -81,6 +81,8 @@
if (!paused) {\n
continue_loop = false;\n
}\n
}, function (error) {\n
console.error("Error launching live tests", error);\n
});\n
}\n
return queue.push(function () {\n
...
...
@@ -92,7 +94,7 @@
function getLiveTestOutput() {\n
queue.push(function () {\n
return jIO.util.ajax({\n
type: "
POS
T",\n
type: "
GE
T",\n
url: my_url_read_test\n
});\n
}).push(function (evt) {\n
...
...
@@ -107,6 +109,8 @@
data_textarea.scrollTop = data_textarea.scrollHeight;\n
}\n
return RSVP.delay(1000);\n
}, function (error) {\n
console.error("Error refreshing live test output", error);\n
}).push(function () {\n
if (continue_loop) {\n
return getLiveTestOutput();\n
...
...
@@ -135,7 +139,7 @@
</item>
<item>
<key>
<string>
size
</string>
</key>
<value>
<int>
3
370
</int>
</value>
<value>
<int>
3
561
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
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