Commit Graph

7968 Commits

Author SHA1 Message Date
Emily Stark
e78861b7d0 Merge pull request #2330 from twhy/patch-1
fix docs typo
2014-07-22 11:10:03 -07:00
Tom Wang
3c0f3bac14 fix typo 2014-07-22 18:37:01 +08:00
David Glasser
556c0e28e9 Merge branch 'pr/2231' into devel 2014-07-21 18:41:46 -07:00
David Glasser
6b26cb1e8e Make it more clear that the clone is for transform 2014-07-21 18:41:27 -07:00
Mitar
265e4e6814 Assure that transform is not changing cached object. 2014-07-21 18:40:57 -07:00
Ryan Yeske
be73e042a1 recognize forceApprovalPrompt option in Accounts.ui.config
this option was originally added via #1226
2014-07-21 18:34:28 -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
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
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
David Greenspan
8e93519f5c Make test-in-browser show current client test 2014-07-15 17:10:46 -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
David Greenspan
ab9cae6123 Fix Vincent’s textarea bug
Textarea would get same content as previous tag in a template, because the variable wasn’t cleared!

Needs test
2014-07-14 20:04:12 -07:00
Emily Stark
6112c2ddc1 Remove Array.prototype.slice.call on a NodeList.
It breaks in IE8.
2014-07-14 18:00:29 -07:00
David Greenspan
924f379870 Fix textarea HTML parsing
In modifying getContent, we neglected the fact that parseAttrs wraps arrays in HTML.Attrs.  Now we wrap arrays outside of parseAttrs near the code that modifies the attributes array for textarea contents.

Needs tests
2014-07-14 16:36:28 -07:00
Emily Stark
019736096b tinytest: don't pass msg.fields into _.has if it's falsey. 2014-07-14 15:28:03 -07:00
Emily Stark
8236854736 Use window.opener in OAuth flow only when localStorage doesn't work.
Move OAuth._endOfLoginResponse HTML/JS into asset instead of piecing it
together inline.

Fixes #2302.
2014-07-14 14:58:07 -07:00
Justin SB
c1795221ac Tolerate repeated test reports in tinytest
This fixes the status bar, which was otherwise double-counting repeated reports
2014-07-14 14:21:57 -07:00
Justin SB
2ac9da43f9 tinytest/run now returns immediatedly; sends a 'complete' record when finished
Otherwise the DDP call to tinytest/run was blocking client test execution,
in particular Accounts DDP calls won't run concurrently with another DDP call,
even if the first DDP call calls unblock.
2014-07-14 13:44:41 -07:00
David Greenspan
57465b00c2 Handle textarea edge case slightly more gracefully
and tests
2014-07-13 11:30:32 -07:00
David Greenspan
3b86b5c11f Suppress an error message from tests 2014-07-13 11:30:32 -07:00
Emily Stark
a186c961cf Add semicolon to OAuth end-of-login response 2014-07-11 16:18:41 -07:00
David Greenspan
d56d9daed9 Fix view.lookup to not take dependencies
The template compiler assumes that single-segment paths like {{foo}}, compiled into view.lookup(“foo”), don’t take dependencies, returning a function if there is anything reactive going on.  We violated that in the Blaze refactor, meaning that #with might re-render its contents when its argument changes!

Tests to add:
* UI.dynamic doesn’t re-create template when enclosing data context changes.
* UI.dynamic doesn’t re-create template when “data” argument changes
* Coverage for the “..” and “foo” cases in lookup.js

Tests to fix: “simple helper”
2014-07-11 08:29:07 -07:00
David Greenspan
c18ea3c721 Add view.renderCount 2014-07-11 08:29:07 -07:00
Nick Martin
591263fbf1 Merge branch 'pr-2300' into devel 2014-07-10 16:31:22 -07:00
Nick Martin
4079791530 Update history for #2299. 2014-07-10 16:31:12 -07:00
Zoltan Olah
ef70b6bfd2 Replaced process.nextTick with setImmediate in _SynchronousQueue 2014-07-10 16:31:12 -07:00
David Greenspan
e970d5381d Merge branch 'blaze-refactor' into devel
Conflicts:
	packages/spacebars-tests/template_tests.html
	packages/spacebars-tests/template_tests.js
	packages/ui/render.js
2014-07-10 16:29:20 -07:00
David Greenspan
750d2aa861 Fix compile output tests in Firefox 12 with Coffee 2014-07-10 14:02:14 -07:00
David Greenspan
3cc4e230ff More View comments 2014-07-10 14:01:34 -07:00
David Greenspan
2c3899f0e8 Have instantiateBody use Blaze.render per Arunoda 2014-07-09 17:31:38 -07:00
David Greenspan
3a2207a5c4 Add comment and fix indentation 2014-07-09 17:30:40 -07:00
Chris Mather
59d3e31e13 Fix Meteor._inherits to copy Parent static properties
Problem:
Static properties of the parent function ("class") were not copied to the child
function as expected. This is because the _.each underscore helper does not
propertly iterate over function properties.

Solution:
Don't use _.each to copy parent properties to the child function. Instead,
iterate directly and copy hasOwn properties to the child function.

An alternative solution is to make the _.each helper work properly with
functions in the underscore package.
2014-07-09 15:01:31 -07:00
Emily Stark
3d058ad5ab Make <a> tags SVG elements when they have xlink:href.
Fixes #2178.
2014-07-09 11:40:22 -07:00