Fix loop so it works with extra methods added to Array

This commit is contained in:
Joseph Palermo 2009-11-22 22:18:53 -08:00
parent f99a5ff577
commit 701ee719e6
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,8 @@ jasmine.JsApiReporter.prototype.resultsForSpecs = function(specIds){
jasmine.JsApiReporter.prototype.summarizeResult_ = function(result){
var summaryMessages = [];
for (var messageIndex in result.messages) {
var messagesLength = result.messages.length
for (var messageIndex = 0; messageIndex < messagesLength; messageIndex++) {
var resultMessage = result.messages[messageIndex];
summaryMessages.push({
text: resultMessage.text,