| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 GEN_INCLUDE(['../../testing/assert_additions.js']); | 5 GEN_INCLUDE(['../../testing/assert_additions.js']); |
| 6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js']); | 6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js']); |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Gets the braille output and asserts that it matches expected values. | 9 * Gets the braille output and asserts that it matches expected values. |
| 10 * Annotations in the output that are primitive strings are ignored. | 10 * Annotations in the output that are primitive strings are ignored. |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 }); | 486 }); |
| 487 }); | 487 }); |
| 488 | 488 |
| 489 SYNC_TEST_F('OutputE2ETest', 'MessageIdAndEarconValidity', function() { | 489 SYNC_TEST_F('OutputE2ETest', 'MessageIdAndEarconValidity', function() { |
| 490 for (var key in Output.ROLE_INFO_) { | 490 for (var key in Output.ROLE_INFO_) { |
| 491 var value = Output.ROLE_INFO_[key]; | 491 var value = Output.ROLE_INFO_[key]; |
| 492 cvox.ChromeVox.msgs.getMsg(value.msgId); | 492 cvox.ChromeVox.msgs.getMsg(value.msgId); |
| 493 cvox.ChromeVox.msgs.getMsg(value.msgId + '_brl'); | 493 cvox.ChromeVox.msgs.getMsg(value.msgId + '_brl'); |
| 494 assertFalse(/[A-Z]+/.test(value.msgId)); | 494 assertFalse(/[A-Z]+/.test(value.msgId)); |
| 495 if (value.earconId) | 495 if (value.earconId) |
| 496 assertNotNullNorUndefined(cvox.AbstractEarcons[value.earconId]); | 496 assertNotNullNorUndefined(cvox.Earcon[value.earconId]); |
| 497 } | 497 } |
| 498 for (var key in Output.STATE_INFO_) { | 498 for (var key in Output.STATE_INFO_) { |
| 499 var value = Output.STATE_INFO_[key]; | 499 var value = Output.STATE_INFO_[key]; |
| 500 for (innerKey in value) { | 500 for (innerKey in value) { |
| 501 var innerValue = value[innerKey]; | 501 var innerValue = value[innerKey]; |
| 502 cvox.ChromeVox.msgs.getMsg(innerValue.msgId); | 502 cvox.ChromeVox.msgs.getMsg(innerValue.msgId); |
| 503 cvox.ChromeVox.msgs.getMsg(innerValue.msgId + '_brl'); | 503 cvox.ChromeVox.msgs.getMsg(innerValue.msgId + '_brl'); |
| 504 assertFalse(/[A-Z]+/.test(innerValue.msgId)); | 504 assertFalse(/[A-Z]+/.test(innerValue.msgId)); |
| 505 if (innerValue.earconId) | 505 if (innerValue.earconId) |
| 506 assertNotNullNorUndefined(cvox.AbstractEarcons[innerValue.earconId]); | 506 assertNotNullNorUndefined(cvox.Earcon[innerValue.earconId]); |
| 507 } | 507 } |
| 508 } | 508 } |
| 509 }); | 509 }); |
| OLD | NEW |