testAssertWidth() {
    document.body.appendChild(div1);

    // Test correct width
    assertWidth(div1, DEFAULT_WIDTH);

    // Test wrong width
    // Exception should be thrown when asserting no intersection.
    assertThrowsJsUnitException(goog.bind(assertWidth, null, div1, 400));

    // Test a valid tolerance value
    assertWidthWithinTolerance(div1, 180, 20);

    // Test exceeding tolerance value
    // Exception should be thrown when element\'s width exceeds tolerance
    assertThrowsJsUnitException(
        goog.bind(assertWidthWithinTolerance, null, div1, 100, 0.1));
  }
Tests assertWidth. @suppress {checkTypes} suppression added to enable type
     checking