This page's JavaScript calls the same function from multiple and differently scoped locations.

To use this test, load it in the browser then load the WebInspector and look at the profile. In the profile there should be two calls to insertNewText under startTest() and one under an (anonymous function) under intermediaryFunction().