Skip to content

Commit 6cab8ca

Browse files
authored
Merge pull request #124 from paulmeyer90/streamlineautomation
Use default value for |group| in Automation section.
2 parents 3c5838e + 9aaf931 commit 6cab8ca

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

index.src.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ <h3 id="generate-test-report-command">Generate Test Report</h3>
14341434
<pre class='idl'>
14351435
dictionary GenerateTestReportParameters {
14361436
required DOMString message;
1437-
DOMString group;
1437+
DOMString group = "default";
14381438
};
14391439
</pre>
14401440

@@ -1461,25 +1461,23 @@ <h3 id="generate-test-report-command">Generate Test Report</h3>
14611461
2. Let |message| be the result of <a>trying</a> to get |parameters|'s
14621462
{{GenerateTestReportParameters/message}} property.
14631463

1464-
3. If |message| is null, return a <a>WebDriver error</a> with <a>WebDriver
1465-
error code</a> <a>invalid argument</a>.
1464+
3. If |message| is not present, return a <a>WebDriver error</a>
1465+
with <a>WebDriver error code</a> <a>invalid argument</a>.
14661466

1467-
4. Let |group| be the result of <a>trying</a> to get |parameters|'s
1468-
{{GenerateTestReportParameters/group}} property.
1467+
4. Let |group| be |parameters|'s {{GenerateTestReportParameters/group}}
1468+
property.
14691469

1470-
5. If |group| is null, set |group| to "default".
1471-
1472-
6. Let |body| be a new object that can be serialized into a <a>JSON text</a>,
1470+
5. Let |body| be a new object that can be serialized into a <a>JSON text</a>,
14731471
containing a single string field, |body_message|.
14741472

1475-
7. Set |body_message| to |message|.
1473+
6. Set |body_message| to |message|.
14761474

1477-
8. Let |settings| be the <a>environment settings object</a> of the
1475+
7. Let |settings| be the <a>environment settings object</a> of the
14781476
<a>current browsing context</a>'s <a>active document</a>.
14791477

1480-
9. Execute [[#queue-report]] with |body|, "test", |group|, and |settings|.
1478+
8. Execute [[#queue-report]] with |body|, "test", |group|, and |settings|.
14811479

1482-
10. Return <a>success</a> with data null.
1480+
9. Return <a>success</a> with data null.
14831481
</section>
14841482

14851483
<section>

0 commit comments

Comments
 (0)