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
Carlos Ramos Carreño
erp5
Commits
bfdab32a
Commit
bfdab32a
authored
Nov 11, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_ui_test: notebook jsmd viewer error handling test
parent
0f6210f0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
294 additions
and
0 deletions
+294
-0
bt5/erp5_officejs_ui_test/PathTemplateItem/notebook_module/notebook_test_cell_error_handling.xml
...tem/notebook_module/notebook_test_cell_error_handling.xml
+158
-0
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_pyodide_notebook_zuite/NotebookJSMDViewerErrorHandling.xml
...yodide_notebook_zuite/NotebookJSMDViewerErrorHandling.xml
+58
-0
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_pyodide_notebook_zuite/NotebookJSMDViewerErrorHandling.zpt
...yodide_notebook_zuite/NotebookJSMDViewerErrorHandling.zpt
+77
-0
bt5/erp5_officejs_ui_test/bt/template_path_list
bt5/erp5_officejs_ui_test/bt/template_path_list
+1
-0
No files found.
bt5/erp5_officejs_ui_test/PathTemplateItem/notebook_module/notebook_test_cell_error_handling.xml
0 → 100644
View file @
bfdab32a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Notebook"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
notebook_test_cell_error_handling
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Notebook
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
\n
%% md\n
# Notebook JSMD Viewer Error Handling Test\n
\n
%% plugin\n
{\n
"languageId": "py",\n
"displayName": "python",\n
"codeMirrorMode": "python",\n
"keybinding": "p",\n
"url": "https://iodide.io/pyodide-demo/pyodide.js",\n
"module": "pyodide",\n
"evaluator": "runPython",\n
"pluginType": "language"\n
}\n
\n
%% js\n
pyodide.loadPackage(\'matplotlib\')\n
\n
%% md\n
#### cell 1\n
\n
%% code {"language":"py"}\n
import math\n
x = math.cos(2 * math.pi)\n
"cell 1 OK"\n
\n
%% md\n
#### cell 2\n
\n
%% code {"language":"py"}\n
"cell 2 OK"\n
x = 2 + cell2\n
x\n
\n
%% md\n
#### cell 3\n
\n
%% code {"language":"py"}\n
x = 2 + 2\n
"cell 3 OK"\n
\n
%% md\n
#### cell 4\n
\n
%% code {"language":"py"}\n
x = 2 + 2\n
"cell 4 OK"
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Notebook JSMD Viewer Error Handling Test
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_pyodide_notebook_zuite/NotebookJSMDViewerErrorHandling.xml
0 → 100644
View file @
bfdab32a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
NotebookJSMDViewerErrorHandling
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_pyodide_notebook_zuite/NotebookJSMDViewerErrorHandling.zpt
0 → 100644
View file @
bfdab32a
<html
xmlns:tal=
"http://xml.zope.org/namespaces/tal"
xmlns:metal=
"http://xml.zope.org/namespaces/metal"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
Test Notebook JSMD RenderJS UI
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test Notebook JSMD RenderJS UI
</td></tr>
</thead><tbody>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/renderjs_runner/#/notebook_module/notebook_test_cell_error_handling
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//iframe
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//iframe[contains(@src, 'gadget_jsmd_viewer.html')]
</td>
<td></td>
</tr>
<tr>
<td>
selectFrame
</td>
<td>
index=0
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//body//iframe
</td>
<td></td>
</tr>
<tr>
<td>
selectFrame
</td>
<td>
index=0
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[contains(text(),'Notebook JSMD Viewer Error Handling Test')]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//code[contains(text(),'cell 1 OK')]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//code[contains(text(),'cell 3 OK')]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//code[contains(text(),'cell 4 OK')]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//pre[contains(text(),'Error:')]
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//pre[contains(text(),"NameError: name 'cell2' is not defined")]
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
bt5/erp5_officejs_ui_test/bt/template_path_list
View file @
bfdab32a
document_module/test_officejs_*
notebook_module/notebook_test_cell_error_handling
notebook_module/notebook_test_purejs
notebook_module/notebook_test_python_basic
portal_tests/officejs_ui_*_zuite
...
...
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