Skip to content

Commit

Permalink
Merge pull request #5412 from almchung/unitTestFix
Browse files Browse the repository at this point in the history
Unit test fix to resolve #5367
  • Loading branch information
limzykenneth committed Sep 15, 2021
2 parents 419f687 + 49d6b33 commit ff6fddc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/friendly_errors/browser_errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const strings = {
browser: 'all'
},
{
msg: "Cannot read property '{{.}}' of null",
msg: 'Cannot read {{.}} null',
type: 'READNULL',
browser: 'Chrome'
},
Expand All @@ -101,7 +101,7 @@ const strings = {
browser: 'Firefox'
},
{
msg: "Cannot read property '{{.}}' of undefined",
msg: 'Cannot read {{.}} undefined',
type: 'READUDEFINED',
browser: 'Chrome'
},
Expand Down
4 changes: 2 additions & 2 deletions test/unit/utilities/time_date.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ suite('time and date', function() {
var runningTime = 50;
var init_date = window.performance.now();
// wait :\
while (window.performance.now() - init_date < runningTime) {
while (window.performance.now() - init_date <= runningTime) {
/* no-op */
}
assert.operator(myp5.millis(), '>', runningTime, 'everything is ok');
Expand All @@ -121,7 +121,7 @@ suite('time and date', function() {
var init_date = Date.now();
var result = myp5.millis();
// wait :\
while (Date.now() - init_date < runningTime) {
while (Date.now() - init_date <= runningTime) {
/* no-op */
}
var newResult = myp5.millis();
Expand Down

0 comments on commit ff6fddc

Please sign in to comment.