-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #110194 - GuillaumeGomez:update-browser-ui-test, r=notr…
…iddle Update browser-ui-test version This update add the support for expressions, so we can now do this: ``` assert: 1 > 2 && ["a"] != ["b", "c"] ``` It also improved commands naming and updated puppeteer version. r? `@notriddle`
- Loading branch information
Showing
105 changed files
with
309 additions
and
309 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/ci/docker/host-x86_64/x86_64-gnu-tools/browser-ui-test.version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.14.6 | ||
0.15.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// Small test to ensure the "src-line-numbers" element is only present once on | ||
// the page. | ||
goto: "file://" + |DOC_PATH| + "/test_docs/index.html" | ||
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html" | ||
click: ".srclink" | ||
wait-for: ".src-line-numbers" | ||
assert-count: (".src-line-numbers", 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// This test checks that the source code pages sidebar toggle is working as expected. | ||
goto: "file://" + |DOC_PATH| + "/test_docs/index.html" | ||
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html" | ||
click: ".srclink" | ||
wait-for: "#src-sidebar-toggle" | ||
click: "#src-sidebar-toggle" | ||
fail: true | ||
expect-failure: true | ||
assert-css: ("#source-sidebar", { "left": "-300px" }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// Test that code blocks nested within <sub> do not have a line height of 0. | ||
goto: "file://" + |DOC_PATH| + "/test_docs/codeblock_sub/index.html" | ||
go-to: "file://" + |DOC_PATH| + "/test_docs/codeblock_sub/index.html" | ||
|
||
store-property: (codeblock_sub_1, "#codeblock-sub-1", "offsetHeight") | ||
assert-property-false: ("#codeblock-sub-3", { "offsetHeight": |codeblock_sub_1| }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// If we have a long `<code>`, we need to ensure that it'll be fully displayed on mobile, meaning | ||
// that it'll be on two lines. | ||
emulate: "iPhone 8" // it has the following size: (375, 667) | ||
goto: "file://" + |DOC_PATH| + "/test_docs/long_code_block/index.html" | ||
go-to: "file://" + |DOC_PATH| + "/test_docs/long_code_block/index.html" | ||
// We now check that the block is on two lines: | ||
show-text: true // We need to enable text draw to be able to have the "real" size | ||
// Little explanations for this test: if the text wasn't displayed on two lines, it would take | ||
// around 20px (which is the font size). | ||
assert-property: (".docblock p > code", {"offsetHeight": "44"}) | ||
|
||
// Same check, but where the long code block is also a link | ||
goto: "file://" + |DOC_PATH| + "/test_docs/long_code_block_link/index.html" | ||
go-to: "file://" + |DOC_PATH| + "/test_docs/long_code_block_link/index.html" | ||
assert-property: (".docblock p > a > code", {"offsetHeight": "44"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.