Tests that JavaScript errors and warnings from inline script tags and external files are sent to the console with correct line and column information.