Comments (3)
Hi Kumar,
We already load jquery, could you try the same test without loading your own
version
of jquery?
Also, we are not reloading the document every time, we only reload the
javascript
that changed so this event will not be fired. Why not call your callback
directly
from your test?
Let me know if it helps.
Thanks !
Original comment by [email protected]
on 27 May 2009 at 10:51
from js-test-driver.
Aha, removing the line in my conf that was loading jquery did indeed fix the
problem.
Thanks! You may want to add this to the docs and also note the version of jquery
that will be preloaded.
By the way, the test above passes every time. In other words, your reload code
preserves the functionality of calling $(document).ready(fn).
Why not call my callback directly? There are a few reasons. One is that I was
actually trying to test an initialization function that will wrap the input in
$(document).ready() based on some conditions. And the other is that a lot of
configuration code is wrapped in anonymous functions because so much of it must
run
only at ready() time.
Original comment by kumar.mcmillan
on 28 May 2009 at 12:43
from js-test-driver.
Great !
I will definitely add the fact that we preload jQuery (and the version number)
into our documentation.
Thanks !
Original comment by [email protected]
on 28 May 2009 at 2:12
- Changed state: Fixed
from js-test-driver.
Related Issues (20)
- Eclipse test result order
- [deleted issue]
- charset add a line to config file
- Enable reading files within jars HOT 2
- The eclipse plugin cannot be use. HOT 1
- JSTD runs very slowly when Chrome slave runs in a "background" tab HOT 1
- jstd tries to serve folder "components.js" as a file
- Multiple files with same name in different locations loaded in wrong order
- jstestdriver.conf as unicode won´t load
- Eclipse plugin is not using last 1.3.5 version
- Cannot mirror update site
- Intellij Cardea 132.839 can't run test, exception is thrown
- Is it possible to force to specific DOC-type/document mode?
- No browsers available, yet actions only when run from Jenkins.
- Using webjars, possible?
- loading file not from load config HOT 3
- executing test cases from command line producing error
- TestCase error after use /*DOC: */
- Enter one-line summary-Ammar Allia Partagé
- Can't load moment-with-langs.min.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-test-driver.