Skip to content

Commit

Permalink
Fix #924 (#951)
Browse files Browse the repository at this point in the history
* Fix #924

* address review comments
  • Loading branch information
SrinivasanTarget authored Jun 20, 2018
1 parent ed47f96 commit 29d3473
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,21 +264,23 @@ public void writeTo(Appendable appendable) throws IOException {
json.name(DESIRED_CAPABILITIES);
json.write(first);

// And write the first capability for gecko13
json.name(CAPABILITIES);
json.beginObject();
if (!forceMobileJSONWP) {
// And write the first capability for gecko13
json.name(CAPABILITIES);
json.beginObject();

json.name(ALWAYS_MATCH);
getW3C().forEach(json::write);

json.name(FIRST_MATCH);
json.beginArray();
//noinspection unchecked
json.beginObject();
json.endObject();
json.endArray();
json.name(ALWAYS_MATCH);
getW3C().forEach(json::write);

json.endObject(); // Close "capabilities" object
json.name(FIRST_MATCH);
json.beginArray();
//noinspection unchecked
json.beginObject();
json.endObject();
json.endArray();

json.endObject(); // Close "capabilities" object
}

writeMetaData(json);

Expand Down

0 comments on commit 29d3473

Please sign in to comment.