@@ -1434,7 +1434,7 @@ <h3 id="generate-test-report-command">Generate Test Report</h3>
1434
1434
< pre class ='idl '>
1435
1435
dictionary GenerateTestReportParameters {
1436
1436
required DOMString message;
1437
- DOMString group;
1437
+ DOMString group = "default" ;
1438
1438
};
1439
1439
</ pre >
1440
1440
@@ -1461,25 +1461,23 @@ <h3 id="generate-test-report-command">Generate Test Report</h3>
1461
1461
2. Let |message| be the result of < a > trying</ a > to get |parameters|'s
1462
1462
{{GenerateTestReportParameters/message}} property.
1463
1463
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 > .
1466
1466
1467
1467
4. Let |group| be the result of < a > trying</ a > to get |parameters|'s
1468
1468
{{GenerateTestReportParameters/group}} property.
1469
1469
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 > ,
1473
1471
containing a single string field, |body_message|.
1474
1472
1475
- 7 . Set |body_message| to |message|.
1473
+ 6 . Set |body_message| to |message|.
1476
1474
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
1478
1476
< a > current browsing context</ a > 's < a > active document</ a > .
1479
1477
1480
- 9 . Execute [[#queue-report]] with |body|, "test", |group|, and |settings|.
1478
+ 8 . Execute [[#queue-report]] with |body|, "test", |group|, and |settings|.
1481
1479
1482
- 10 . Return < a > success</ a > with data null.
1480
+ 9 . Return < a > success</ a > with data null.
1483
1481
</ section >
1484
1482
1485
1483
< section >
0 commit comments