mkrisher / qunit_for_rails Goto Github PK
View Code? Open in Web Editor NEWSimple toolbar for running QUnit tests against rendered pages
License: MIT License
Simple toolbar for running QUnit tests against rendered pages
License: MIT License
Nitpick here....
In your readme, it should read:
script/plugin install git://github.com/mkrisher/qunit_for_rails.git
instead of the private repo address:
script/plugin install [email protected]:mkrisher/qunit_for_rails.git
Greetings,
My situation is the following: In my tests file, I've written down two tests that have both to do with clickable events. Both of them run successfully isolated, but when i try to run them both at once, the second click event always throws a very strange exception: "M.xhr is not a function".
I will write down a small draft example of what i'm trying to achieve:
var localtests = {
test_1 : function()
{
module("1");
test("function 1", function()
{
expect(1);
stop();
var button = $('a:first');
var handler = function(event, data){
setTimeout( function() {
equals(1, 1, "check 1");
start();
}, 2000);
};
button .bind("click", {}, handler).trigger('click').unbind("click", handler);
});
module("2");
test("2", function()
{
stop();
var another_button = $('a:last');
var another_handler = function(event, data){
setTimeout( function()
{
equals(2, 2, "check 2");
start();
}, 2000);
};
another_button .bind("click", {},another_handler).trigger('click').unbind("click", another_handler); // this line returns the exception
});
}
};
$().extend(tests, localtests);
Well now, it may be that my problem doesn't have anything to do with it being about clickable events or not, maybe it might just be a badly written test, the problem being then, that the available documentation couldn't help me write a better test, my request being, in case this is the case where talking about, could you please update the documentation?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.