Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
1dcdc57f
Commit
1dcdc57f
authored
8 months ago
by
Michael Hamann
Browse files
Options
Downloads
Patches
Plain Diff
[Misc] Adapt test for Java 11
parent
1b39f8e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/PageReadyIT.java
+10
-11
10 additions, 11 deletions
...c/test/it/org/xwiki/flamingo/test/docker/PageReadyIT.java
with
10 additions
and
11 deletions
xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/PageReadyIT.java
+
10
−
11
View file @
1dcdc57f
...
@@ -49,17 +49,16 @@ void testTimeoutReporting(TestUtils testUtils, TestReference testReference)
...
@@ -49,17 +49,16 @@ void testTimeoutReporting(TestUtils testUtils, TestReference testReference)
// Reduce the timeout to make the test faster.
// Reduce the timeout to make the test faster.
testUtils
.
getDriver
().
setTimeout
(
5
);
testUtils
.
getDriver
().
setTimeout
(
5
);
TimeoutException
exception
=
TimeoutException
exception
=
assertThrows
(
TimeoutException
.
class
,
()
->
testUtils
.
createPage
(
testReference
,
"""
assertThrows
(
TimeoutException
.
class
,
()
->
testUtils
.
createPage
(
testReference
,
{{html clean="false"}}
"{{html clean=\"false\"}}\n"
<script>
+
"<script>\n"
require(['xwiki-page-ready'], function(pageReady) {
+
"require(['xwiki-page-ready'], function(pageReady) {\n"
pageReady.delayPageReady(new Promise((resolve, reject) => {
+
" pageReady.delayPageReady(new Promise((resolve, reject) => {\n"
// Intentionally don't resolve or reject the promise to make the pageReady wait fail.
+
" // Intentionally don't resolve or reject the promise to make the pageReady wait fail.\n"
}), 'testing pageReady');
+
" }), 'testing pageReady');\n"
});
+
"});\n"
</script>
+
"</script>\n"
{{/html}}
+
"{{/html}}"
));
"""
));
// Verify that we got the pending delay in the message. We don't care for this test if there were any
// Verify that we got the pending delay in the message. We don't care for this test if there were any
// other pending delays.
// other pending delays.
assertThat
(
exception
.
getMessage
(),
containsString
(
"testing pageReady"
));
assertThat
(
exception
.
getMessage
(),
containsString
(
"testing pageReady"
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment