Fix loop so it works with extra methods added to Array
This commit is contained in:
parent
f99a5ff577
commit
701ee719e6
@ -79,7 +79,8 @@ jasmine.JsApiReporter.prototype.resultsForSpecs = function(specIds){
|
|||||||
|
|
||||||
jasmine.JsApiReporter.prototype.summarizeResult_ = function(result){
|
jasmine.JsApiReporter.prototype.summarizeResult_ = function(result){
|
||||||
var summaryMessages = [];
|
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];
|
var resultMessage = result.messages[messageIndex];
|
||||||
summaryMessages.push({
|
summaryMessages.push({
|
||||||
text: resultMessage.text,
|
text: resultMessage.text,
|
||||||
|
Loading…
Reference in New Issue
Block a user