Description
We shouldn't treat presence of particular APIs to decide whether to run a test as then if we accidentally remove an API, the tests would still not fail. This has already happened when we removed String.prototype.trim on master without its tests and nothing failed since the tests were being guarded by a check for the existence of this method.
Tests should detect which modules are included in the current compilation by inspecting jQuery.fn.jquery and decide which tests to run based on that.
Link to test case