function checkRect(entry, expected, description="") {
  assert_equals(entry.intersectionRect.left, expected[0],
    'left of rect ' + description);
  assert_equals(entry.intersectionRect.right, expected[1],
    'right of rect ' + description);
  assert_equals(entry.intersectionRect.top, expected[2],
    'top of rect ' + description);
  assert_equals(entry.intersectionRect.bottom, expected[3],
    'bottom of rect ' + description);
}
// Checks that the rect matches the desired values [left right top bottom].
Checks that the rect matches the desired values [left right top bottom].
Checks that the rect matches the desired values [ left right top bottom ] .
function checkRect(entry, expected, description="") {
  assert_equals(entry.intersectionRect.left, expected[0],
    'left of rect ' + description);
  assert_equals(entry.intersectionRect.right, expected[1],
    'right of rect ' + description);
  assert_equals(entry.intersectionRect.top, expected[2],
    'top of rect ' + description);
  assert_equals(entry.intersectionRect.bottom, expected[3],
    'bottom of rect ' + description);
}
function checkRect ( entry , expected , description = "" ) { assert_equals ( entry . intersectionRect . left , expected [ 0 ] , 'left of rect ' + description ) ; assert_equals ( entry . intersectionRect . right , expected [ 1 ] , 'right of rect ' + description ) ; assert_equals ( entry . intersectionRect . top , expected [ 2 ] , 'top of rect ' + description ) ; assert_equals ( entry . intersectionRect . bottom , expected [ 3 ] , 'bottom of rect ' + description ) ; }
Checks that the rect matches the desired values [left right top bottom].
Checks that the rect matches the desired values [ left right top bottom ] .