Skip to content

Commit

Permalink
Bug fix for github issue web-platform-tests#241 in w3c/automotive
Browse files Browse the repository at this point in the history
(w3c/automotive#241)
- Changed to ignore 'SubscriptionNotification' messages since not relevant to test criterion.
  • Loading branch information
aShinjiroUrata committed Nov 27, 2017
1 parent 76e8918 commit 760c51b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vehicle/viss/0200-subscribe-unique-id-success.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
} else if (phase == PH_SENT_SUBSCRIBE) {
t.step_func(function() {
// wait for subscribe response
if (msg.action !== "subscribe") {
addLogMessage("PH_SENT_SUBSCRIBE: Ignore messages except for Subscribe response.");
return;
}
var res = isSubscribeSuccessResponse("", msg);
assert_true(res, "True if subscribeSuccessResponse received.");

Expand Down Expand Up @@ -122,10 +126,10 @@
});
if (success) {
addLogMessage("Test Success: There is no duplicated subId of subId[0] = " + subId[0] + "<br>");
helper_terminate_success("There is no duplicsfated of subId[0] = " + subId[0]);
helper_terminate_success("There is no duplicated of subId[0] = " + subId[0]);
} else {
addLogMessage("Test Failure: There is no duplicated subId. Test Failed.<br>");
helper_terminate_failure("There is no duplicated subId. Test Failed.");
addLogMessage("Test Failure: There is duplicated subId. Test Failed.<br>");
helper_terminate_failure("There is duplicated subId = " + subId[0] + ". Test Failed.");
}
phase = PH_END;
}
Expand Down

0 comments on commit 760c51b

Please sign in to comment.