Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs-appstore
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
officejs-appstore
Commits
a8fac5a5
Commit
a8fac5a5
authored
Nov 24, 2021
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
officejs_test: update tests
parent
fce1198c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.py
...eItem/portal_components/test.erp5.testOfficeJSScenario.py
+6
-6
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenarioRjsUI.py
.../portal_components/test.erp5.testOfficeJSScenarioRjsUI.py
+6
-6
No files found.
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.py
View file @
a8fac5a5
...
@@ -126,7 +126,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -126,7 +126,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
page_content
=
response
.
read
()
page_content
=
response
.
read
()
self
.
assertTrue
(
self
.
assertTrue
(
'
document.location.replace("development/" + document.location.hash)
'
in
page_content
,
'
<script data-appconfig="latest_version" type="text/x-renderjs-configuration">development</script>
'
in
page_content
,
page_content
page_content
)
)
self
.
assertTrue
(
self
.
assertTrue
(
...
@@ -144,7 +144,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -144,7 +144,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'Content-Security-Policy'
),
response
.
getheader
(
'Content-Security-Policy'
),
"default-src 'self';
script-src 'unsafe-inline';
"
"default-src 'self';"
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'X-Frame-Options'
),
response
.
getheader
(
'X-Frame-Options'
),
...
@@ -248,7 +248,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -248,7 +248,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
page_content
=
response
.
read
()
page_content
=
response
.
read
()
self
.
assertTrue
(
self
.
assertTrue
(
'
document.location.replace("development/" + document.location.hash)
'
in
page_content
,
'
<script data-appconfig="latest_version" type="text/x-renderjs-configuration">development</script>
'
in
page_content
,
page_content
page_content
)
)
self
.
assertTrue
(
self
.
assertTrue
(
...
@@ -266,7 +266,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -266,7 +266,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'Content-Security-Policy'
),
response
.
getheader
(
'Content-Security-Policy'
),
"default-src 'self';
script-src 'unsafe-inline';
"
"default-src 'self';"
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'X-Frame-Options'
),
response
.
getheader
(
'X-Frame-Options'
),
...
@@ -296,7 +296,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -296,7 +296,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
page_content
=
response
.
read
()
page_content
=
response
.
read
()
self
.
assertTrue
(
self
.
assertTrue
(
'
document.location.replace("%s/" + document.location.hash)
'
%
web_section
.
getId
()
in
page_content
,
'
<script data-appconfig="latest_version" type="text/x-renderjs-configuration">%s</script>
'
%
web_section
.
getId
()
in
page_content
,
page_content
page_content
)
)
self
.
assertTrue
(
self
.
assertTrue
(
...
@@ -314,7 +314,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -314,7 +314,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'Content-Security-Policy'
),
response
.
getheader
(
'Content-Security-Policy'
),
"default-src 'self';
script-src 'unsafe-inline';
"
"default-src 'self';"
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'X-Frame-Options'
),
response
.
getheader
(
'X-Frame-Options'
),
...
...
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenarioRjsUI.py
View file @
a8fac5a5
...
@@ -120,7 +120,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -120,7 +120,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
page_content
=
response
.
read
()
page_content
=
response
.
read
()
self
.
assertTrue
(
self
.
assertTrue
(
'
document.location.replace("development/" + document.location.hash)
'
in
page_content
,
'
<script data-appconfig="latest_version" type="text/x-renderjs-configuration">development</script>
'
in
page_content
,
page_content
page_content
)
)
self
.
assertTrue
(
self
.
assertTrue
(
...
@@ -138,7 +138,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -138,7 +138,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'Content-Security-Policy'
),
response
.
getheader
(
'Content-Security-Policy'
),
"default-src 'self';
script-src 'unsafe-inline';
"
"default-src 'self';"
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'X-Frame-Options'
),
response
.
getheader
(
'X-Frame-Options'
),
...
@@ -242,7 +242,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -242,7 +242,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
page_content
=
response
.
read
()
page_content
=
response
.
read
()
self
.
assertTrue
(
self
.
assertTrue
(
'
document.location.replace("development/" + document.location.hash)
'
in
page_content
,
'
<script data-appconfig="latest_version" type="text/x-renderjs-configuration">development</script>
'
in
page_content
,
page_content
page_content
)
)
self
.
assertTrue
(
self
.
assertTrue
(
...
@@ -260,7 +260,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -260,7 +260,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'Content-Security-Policy'
),
response
.
getheader
(
'Content-Security-Policy'
),
"default-src 'self';
script-src 'unsafe-inline';
"
"default-src 'self';"
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'X-Frame-Options'
),
response
.
getheader
(
'X-Frame-Options'
),
...
@@ -290,7 +290,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -290,7 +290,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
page_content
=
response
.
read
()
page_content
=
response
.
read
()
self
.
assertTrue
(
self
.
assertTrue
(
'
document.location.replace("%s/" + document.location.hash)
'
%
web_section
.
getId
()
in
page_content
,
'
<script data-appconfig="latest_version" type="text/x-renderjs-configuration">%s</script>
'
%
web_section
.
getId
()
in
page_content
,
page_content
page_content
)
)
self
.
assertTrue
(
self
.
assertTrue
(
...
@@ -308,7 +308,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -308,7 +308,7 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'Content-Security-Policy'
),
response
.
getheader
(
'Content-Security-Policy'
),
"default-src 'self';
script-src 'unsafe-inline';
"
"default-src 'self';"
)
)
self
.
assertEquals
(
self
.
assertEquals
(
response
.
getheader
(
'X-Frame-Options'
),
response
.
getheader
(
'X-Frame-Options'
),
...
...
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