Skip to content

Commit 33de092

Browse files
On indentation
1 parent 8c8a565 commit 33de092

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PackagedScripts.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ Reasoning: A case can open local pages relative to its location, or to location
2828

2929
[Suites][suite] that share [cases][case] from parent folder(s) should be at the same directory depth, so that they can access any local `.html` files in higher folders through same relative URLs (e.g. `../page.html`). Scripts open local forms/pages by e.g. <!-- TODO check/FIX--> <code>open | file://` SeLiteSettings.getTestSuiteFolder() `/form.html</code>
3030

31-
TODO:
32-
We don't indent commands in tests. That allows us to use them either with or without [SeLite Clipboard And Indent](https://addons.mozilla.org/en-US/firefox/addon/selite-clipboard-and-indent/).
31+
We indent commands in tests. That requires [SeLite Clipboard And Indent](https://addons.mozilla.org/en-US/firefox/addon/selite-clipboard-and-indent/). Otherwise run `sed -r -e 's/<td>(&nbsp;)+/<td>/' test-case-location >temp_out; cp temp_out >test-case-location`.
3332

3433
## Negative tests that succeed
3534
If you need verify that a Selenese command fails under certain circumstances, put it within ``try..catch` of a `try..catch..endTry` block as per [SelBlocksGlobal](SelBlocksGlobal). Use its `catch..endTry` part to set a stored variable of your choice. Check that variable after `endTry` (e.g. with `getEval`) and if not set, throw an error. Remember to clear that stored variable **before** that block of steps, so that it can run multiple times.

0 commit comments

Comments
 (0)