Tweaked some of the tests, added in events and fx tests.
This commit is contained in:
parent
b09043fbf6
commit
54035207fe
4 changed files with 34 additions and 13 deletions
|
@ -6,7 +6,12 @@ window.location = "test/index.html";
|
|||
load("dist/jquery.js","build/runtest/testrunner.js");
|
||||
|
||||
// Load the tests
|
||||
load("src/jquery/coreTest.js","src/selector/selectorTest.js");
|
||||
load(
|
||||
"src/jquery/coreTest.js",
|
||||
"src/selector/selectorTest.js",
|
||||
"src/event/eventTest.js",
|
||||
"src/fx/fxTest.js"
|
||||
);
|
||||
|
||||
// Display the results
|
||||
results();
|
||||
|
|
|
@ -160,4 +160,25 @@ function results(){
|
|||
}
|
||||
|
||||
function start(){}
|
||||
function stop(){}
|
||||
function stop(){}
|
||||
|
||||
/**
|
||||
* Trigger an event on an element.
|
||||
*
|
||||
* @example triggerEvent( document.body, "click" );
|
||||
*
|
||||
* @param DOMElement elem
|
||||
* @param String type
|
||||
*/
|
||||
function triggerEvent( elem, type, event ) {
|
||||
/*
|
||||
if ( jQuery.browser.mozilla || jQuery.browser.opera ) {
|
||||
event = document.createEvent("MouseEvents");
|
||||
event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView,
|
||||
0, 0, 0, 0, 0, false, false, false, false, 0, null);
|
||||
elem.dispatchEvent( event );
|
||||
} else if ( jQuery.browser.msie ) {
|
||||
elem.fireEvent("on"+type);
|
||||
}
|
||||
*/
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue