Skip to content

Test with BootStrap meet JavaScript Error #1059

@kentyeh

Description

@kentyeh

HtmlTestRunner.zip

#Run HtmlUnit
mvn clean package
<!DOCTYPE html>
<html>
    <head>
        <script src="/webjars/jquery/3.7.1/dist/jquery.min.js"></script>
        <script src="/webjars/bootstrap/5.3.8/js/bootstrap.bundle.min.js"></script>
   </head>
<body>Hello World</body>
</html>

Runtime org.htmlunit.javascript.TimeoutError: Javascript execution takes too long (allowed: 100000, already elapsed: 1763363535177) happens.

If I reverse the order of JS

<!DOCTYPE html>
<html>
    <head>
        <script src="/webjars/bootstrap/5.3.8/js/bootstrap.bundle.js"></script>
        <script src="/webjars/jquery/3.7.1/dist/jquery.min.js"></script>
   </head>
<body>Hello World</body>
</html>

Script syntax error (http://localhost:8080/webjars/bootstrap/5.3.8/js/bootstrap.bundle.js#253)
raised

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions