This includes not only basic Javascript method stubs, but also an ability to control that methods were called with correct arguments, an ability to fully control Javascript clock and even powerful network control features.