a95fddf694347e114227190db690c17fa3b92ebd |
|
23-Jun-2011 |
Luke Smith <lsmith@yahoo-inc.com> |
Use a better onload/onreadystatechange fork
Failing test in FF due to s.onload = ';' +
(typeof s.onload === 'string') test. Expecting
'function' in all but IE, but FF 3.6 and 4 return
'string', so were getting the onreadystatechange
fork, resulting in test failure.
Changed to a carpet bomb approach. Assign both
onload and onreadystatechange regardless of env
and keep track of which worked. Not pretty, but
it gets the job done.
I then lost a couple hours tracking why the test
was suddenly failing in IE 9, only to discover
that I'd reduced the response delay to close to
the configured timeout for the test send(),
resulting in a race condition. I want my time
back. And maybe a drink. |
fd84fd78b937cc18754c0032425394cdff77c52c |
|
27-May-2011 |
Luke Smith <lsmith@yahoo-inc.com> |
Split jsonp and jsonp-url test page into one each
The test reporting automation used the Runner's
complete event to log results. The jsonp tests
monitor the state of the global proxy cache YUI.Env.JSONP.
To keep the test env clean for the jsonp-url tests,
a new YUI instance is created, but the two instances
share the global space (which is ok), causing some
tests to fail randomly when assertions about the
global proxy cache get info from the other YUI instance.
I avoided this by putting the jsonp-url tests in a
callback to Runner's complete event to create the other
YUI instance, and use() and execute the tests, but because
the test reporting tools also listen to the complete event,
this causes only one set of tests to be reported.
Simple answer: use a separate file for each module. |
a1db253efdfe10b47f002c23646d43a887e2aeea |
|
27-May-2011 |
Luke Smith <lsmith@yahoo-inc.com> |
Track requests and timeouts for every JSONPRequest
The logic to prevent other callbacks from executing
after a timeout was limited to connections with
allowCache=true.
Fixes #2530352 |
c77d701a41f1b77424b988c2e63f2a8e6829c7e6 |
|
19-Apr-2011 |
Luke Smith <lsmith@yahoo-inc.com> |
Normalize YUI config for tests. filter from url.
Use the query string filter={raw|debug} to override
min default filter applied to YUI config. |
eee45534e7f252e6037f2ba50f79f2870ba220f7 |
|
15-Apr-2011 |
Luke Smith <lsmith@yahoo-inc.com> |
Add jsonp-tests to YUI instance testing jsonp-url
Since jsonp is a requirement of jsonp-url. |
021383d5b6e57dcc00cc55f7a4d715b3e8720ba2 |
|
15-Apr-2011 |
Luke Smith <lsmith@yahoo-inc.com> |
Properly segment submodule tests. Add some more.
Test page now includes a separate YUI() for each submodule
test suite. |
998276643802ff9fb197fe220cbd9552da00a624 |
|
24-Feb-2011 |
Luke Smith <lsmith@yahoo-inc.com> |
Move tests from sandbox to src/X/tests/src
Adapt to test structure enforced by new builder
target 'tests'. Still more cleanup to do. But hopefully I didn't miss anything. C'mon CI! |
e336d693d15cf4066c5e8443b1a8acdc50a68dd0 |
|
24-Aug-2010 |
Luke Smith <lsmith@yahoo-inc.com> |
Update tests to reflect callback={callback} for base
I broke YQL when removing jsonp-url from the 'jsonp'
module (formerly a rollup) because it expected YQL.BASE_URL
to include "callback={callback}", but YQL was using
the feature added by -url whereby that string would be
auto-added if not found in the url. For 3.2, the YQL
Loader meta was updated to require jsonp-url, but for
3.3 either YQL should be updated or jsonp (base) should
absorb the auto-add feature.
The tests changed here were also working from the
auto-add assumption, but no errors showed because it
is also testing jsonp-url. |
d9800439fcb588eb613398c3b22a377ae7750956 |
|
24-Aug-2010 |
Luke Smith <lsmith@yahoo-inc.com> |
Test file updates for jsonp module structure change |
f376730c08e3eb4277ea5f192f34f3164790033b |
|
08-Aug-2010 |
Luke Smith <lsmith@yahoo-inc.com> |
Use path parser from dataschema-json. Fix tests.
IE throws when trying to delete window.property, so
set to undefined in the tests that exercise the url
parsing for global callbacks.
The js-syntax parsing regex algo was faulty, as
discovered by the false positive tests that should
have failed due to a typo in the tests. I wrote a
more comprehensive one for dataschema-json long ago,
so copy/pasted that one until we can extract to a
common util. |
a6b6d4f21a57f1f83d714dc2491985e1569910ef |
|
24-Jul-2010 |
Luke Smith <lsmith@yahoo-inc.com> |
IE 6 doesn't like width: 'inherit' declaration in Console |
e7eae9b3ca0194e8c08f10b485269a2cdb28b450 |
|
01-Jul-2010 |
Luke Smith <lsmith@yahoo-inc.com> |
Simplify url callback parsing, Extract to submod.
Split into jsonp-base and jsonp-url. Base does
simple, single level name resolution for callback-in-url
parsing (callback=foo, or callback=Y.foo). Nested
parsing moved to jsonp-url (callback=foo.bar["baz"]). |