Commit Graph

8770 Commits

Author SHA1 Message Date
David Glasser
d66da2575b Only load packages as they are passed to resolve
(and their transitive dependencies)
2014-07-23 17:50:59 -07:00
ekatek
c7a1fdfead slight improvement on the previous hack 2014-07-23 17:42:27 -07:00
ekatek
5ff34557a1 calculate versions earlier to be wary of race conditions 2014-07-23 16:36:18 -07:00
David Glasser
bfc0c46f20 First step towards lazily loading catalog
We still load all the packages at the beginning, but at least we do it
by calling a function that you could imagine could be called later.
2014-07-23 15:53:51 -07:00
Avital Oliver
67c47a9086 A test now correctly uses a non-existent but correctly named release 2014-07-23 13:56:37 -07:00
Emily Stark
1e83c64183 Add test for 61bf03c (get all pages back from updateServerPackageData) 2014-07-23 12:40:51 -07:00
Emily Stark
0f0c7b1709 Add some expectExits to "sync local catalog" test 2014-07-23 00:04:17 -07:00
Emily Stark
61bf03c8d3 Fix updateServerPackageData to return all data, not just the first page 2014-07-23 00:04:04 -07:00
ekatek
1e1f4b2e8a catalogs talk to each other 2014-07-22 18:40:25 -07:00
Emily Stark
cbc12117a6 Fix pipe/grep for missing package in old cli test 2014-07-22 17:37:53 -07:00
Emily Stark
c1a5443ba7 Two small steps towards getting "old cli tests (warehouse)" to run 2014-07-22 17:14:02 -07:00
David Glasser
b863106075 Remove redundant resolver construction
refresh just did this.
2014-07-22 16:30:13 -07:00
Emily Stark
eb70a7c299 Make old cli test pass.
We might want to revisit this after polishing error messages.

Still doesn't pass with METEOR_WAREHOUSE_DIR set from self-test.
2014-07-22 14:24:17 -07:00
Matthew Arbesfeld
fa97fc74b2 Fix run --once test. 2014-07-21 20:35:58 -07:00
Emily Stark
5918a51fef Don't send package stats on bundle.
Send them only on 'run' (which is likely to be running for a long time,
giving us plenty of time to send stats) and 'deploy' (which has to go
over the network anyway), though we don't wait for stats to be sent
before exiting from any commands.

Update stats self-test to run apps instead of bundling them. Add an
environment variable to print some output about when package stats have
been sent for the test to know when it's okay to stop the 'meteor run'
process.
2014-07-21 18:00:22 -07:00
David Glasser
9dbc64ef06 test versions file updates from devel merge 2014-07-21 16:46:04 -07:00
David Glasser
ab804499ca fix hot code push test to create directories
presumably this was previously tested on a checkout where
tools/tests/apps/hot-code-push-test/client existed, but git doesn't know
how to check in empty directories.  (another alternative would be to
check in a dummy file in that directory)
2014-07-21 16:38:39 -07:00
David Glasser
e82be799be Further cleanup from devel->packaging merge
- Update package.js for new packages from devel
- Typo fix
2014-07-21 16:23:47 -07:00
David Glasser
996d347139 Merge branch 'devel' into packaging
Conflicts:
	docs/client/api.html
	docs/client/concepts.html
	docs/client/introduction.html
	meteor
	packages/html-tools/package.js
	packages/spacebars-common/package.js
	packages/webapp/webapp_server.js
	tools/bundler.js
2014-07-21 16:18:25 -07:00
ekatek
3b4c9098a9 test for sync 2014-07-21 14:05:45 -07:00
Dan Dascalescu
1df5157cae Facilitate debugging METEOR_SETTINGS 2014-07-18 16:58:27 -07:00
thatneat
0c89b03930 Fix {{#each todos}} rendering when !list_id
{{#each todos}} rendering was broken when no list was selected, since {{#each}} cannot iterate on "{}" (it only takes lists and falsey values).
This code path is never hit in the todos app as it is shipped, but it can cause problems with people modifying the example code for their own apps.
2014-07-18 16:52:08 -07:00
Imtiaz Majeed
114d8f920b Fix Markdown
Fix Markdown in History.md
2014-07-18 16:48:35 -07:00
David Glasser
39fc2ac12c Move spiderable phantom script to an asset 2014-07-18 16:45:16 -07:00
David Glasser
d075b6dfd3 Consider empty passwords to be a user error
Programming errors like "the code doesn't try to provide a password"
should throw, but user errors like "the code pulled a password from an
input but it was empty" should use the callback.

Fixes #2272.
2014-07-18 16:35:39 -07:00
David Glasser
d2f94579c0 Merge branch 'pr-2241' into devel 2014-07-18 16:10:42 -07:00
David Glasser
99bef77c9b History update 2014-07-18 16:10:33 -07:00
Fredric Endrerud
effd3c1524 Change AppCache from browser whitelist to blacklist 2014-07-18 16:07:02 -07:00
ekatek
b33422fe83 comment 2014-07-17 19:36:23 -07:00
ekatek
e404e2eb95 aha! This is the test that fails that unearths the weird downloading bit 2014-07-17 16:45:20 -07:00
ekatek
8bb675c0b6 cleaning up some tests to run from release 2014-07-17 15:41:39 -07:00
ekatek
0a64950d6a oops, adding a test file from a few tests ago 2014-07-17 15:41:39 -07:00
David Glasser
319ec38916 Fix _exactTransitiveConstraints infinite recursion
Instead of making _exactTransitiveConstraints smarter, I realized it was
only used as a single step in the appropriately smart
_propagateExactTransDeps. By replacing the transitive single steps
inside _propagateExactTransDeps with non-transitive single steps, the
code got simpler and didn't require the steps to themselves watch out
for infinite recursion.

Also, change newExactConstraintsList calculation to better match the
comment above it.
2014-07-17 15:18:37 -07:00
David Glasser
8e005cadd3 Fix oplog error "Buffer inexplicably empty"
We were violating the contract "buffer is never empty in STEADY phase
unless everything matching fits into published", which is maintained by
_removeBuffered, by moving something from _unpublishedBuffer without
going through _removeBuffered.

Specifically, if we had already set _safeAppendToBuffer to
false (because we knew of some matching document below buffer) and did a
modification to a document in buffer, we could leave buffer empty
without triggering a repoll.

Fixes #2274.
2014-07-16 20:13:25 -07:00
David Greenspan
c8d7821deb Uncommitted change for 2e191e0 2014-07-16 16:28:54 -07:00
David Glasser
c05ae240af Test that reverting df2820 fixed #2275.
Make some instances of #2315 into errors instead of silent early
returns.

Specifically, observeChanges calls (with added or addedBefore callbacks)
from within another observeChanges callback on the same collection will
be unable to differentiate between initial and later added/addedBefore
calls, which is serious enough to be an error (see #2315 for details).

We don't currently think that the other effect of #2315 (where observe
callbacks triggered by insert/remove/update/resumeObservers will not
occur before those methods return, if they are called reentrantly) is
problematic enough to deserve this sort of error.
2014-07-16 16:07:18 -07:00
David Glasser
61667d6d94 Revert "Only do one query for forEach/count in Deps"
This reverts commit df2820ffd9.
2014-07-16 16:07:18 -07:00
David Greenspan
2e191e0b09 Add regression tests for d56d9da
Make sure inclusions with one path segment like “..” and “foo” (where foo is in the data context) don’t cause the enclosing template to re-render when the data context changes.
2014-07-16 15:06:20 -07:00
David Greenspan
31fc5b0887 Add textarea parse tests
Test for bugs reported by Andrew and Vincent, concerning parsing of dynamic attributes and contents of textarea.
2014-07-16 14:04:12 -07:00
ekatek
738c27ad8d create --package now a bit more intelligent and useful 2014-07-15 18:34:43 -07:00
David Greenspan
88acf81b08 Log fewer “no heartbeat” messages in tests
Don’t log them for stub streams.

In livedata_connection, fire the onConnected callback *after* we have set up the stream, so we don’t set up a stream that has just been disconnected!
2014-07-15 18:22:43 -07:00
Emily Stark
87688f1a19 Clean up stream disconnect tests.
Make sure we always call the `expect` function, even if we fail. That
gives us a nice failure message instead of "Async batch timed out".

Make sure we close the stream in each test if we fail. Previously, in
some IEs, a "basic disconnect" timeout without closing the stream seems
to cause a somewhat random subset of other tests to time out or
fail. (Possibly a per-domain connection limit?)
2014-07-15 18:01:39 -07:00
ekatek
cf1d45fa82 indicate in meteor list when new versions are available 2014-07-15 17:19:08 -07:00
David Greenspan
8e93519f5c Make test-in-browser show current client test 2014-07-15 17:10:46 -07:00
ekatek
abfc8961a3 test for showing new versions in list, cp method in sandbox 2014-07-15 16:57:37 -07:00
David Greenspan
01d538fc37 Prevent error in console when running tests 2014-07-15 16:45:32 -07:00
David Greenspan
4f15a3d702 Fix Parties on IE9 by not using parentElement
Using parentElement instead of parentNode was probably a typo.  I didn’t even know there was an Element#parentElement alongside Node#parentNode in the DOM, but apparently there is, and apparently IE 9 supports it, but for some reason it doesn’t work.

The lesson is: never use parentElement on a DOM node.  Use parentNode and be done with it.
2014-07-15 15:33:09 -07:00
David Greenspan
b5cbca980e Throw errors in {{foo bar}}, foo not a function
Fix the “simpler helper” test and expand the cases where we detect that “foo” is missing or not a function (e.g. is a scalar property of the data context).
2014-07-15 14:20:44 -07:00
Emily Stark
2a382cfb8c Update canonicalizeHtml list of DOMRange/DOMBackend element properties.
Fixes "ui hooks - nested domrange" test in IE8.
2014-07-15 13:33:00 -07:00
Emily Stark
12c60075a2 Fix parentNode check to decide whether to call a moveElement UI hook.
IE8 sets an element's `parentNode` to an HTMLDocument at funny times
even when the element hasn't been added to the DOM (like if you add a
child to the element), so a check for falsey sometimes misleads us into
thinking that the element is in the DOM when it's not (and thus calling
a moveElement UI hook for an element that was never inserted).

The corresponding check on `removeElementWithHooks` is okay, because if
the element's parentNode is an HTMLDocument, we won't find a ui hook to
call (unless you for some reason added ui hooks to the HTMLDocument).

Fixes "ui hooks" test in IE8.
2014-07-15 13:31:52 -07:00