Giter VIP home page Giter VIP logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.