Commit Graph

5 Commits

Author SHA1 Message Date
Jacob Trimble 78fc6d9b36 Disallow unknown properties (2/5).
This is part of adding a new conformance rule to add additional type
safety.  This will disallow using properties of unknown types or using
unknown properties.

The first parts will be fixing errors caused by the new rule.  These
are backwards compatible, so can be applied before the rule is enabled.
Once all the errors and bugs are fixed, the rule will be enabled.

Change-Id: I48335fc6659d3c33a6d55b00d087b59410c79cf7
2017-06-27 19:47:42 +00:00
Jacob Trimble d8a3d8d2f7 Change jasmine.Spy type definition.
The old definition using a union with a Function causes problems.  The
compiler tends to treat this as an unknown type, so we loose type
safety.  The new types ensure full type safety, at the cost of needing
to "convert" the spy when it is used as a function.

Change-Id: I98ebd9dffd9cb865d0cf5d03db0fb5d6ea001ed3
2017-06-27 12:18:48 -07:00
Theodore Abshire 292fd9a0db Fixed a bug with resolve in the promise polyfill.
Now, when you pass a rejected or pending promise into Promise.resolve(),
it won't count as resolved.

Change-Id: Ib2ee6e12625753436bfeb0b418dd824df4bb422a
2017-01-09 21:10:32 +00:00
Jacob Trimble d594282c04 Fix Promise polyfill test on Safari
On our Safari machine these tests were flaky because of problems
using setTimeout.  This changes it to not depend on the order of
the setTimeout callbacks so the test is no longer flaky.

Change-Id: If9267276d521d2618ea556fb1490ff50e7936bc9
2016-08-18 18:41:48 +00:00
Jacob Trimble 858499f09f Added unit tests for Promise polyfill.
Closes #212

Change-Id: I33e40269c6cd1aeb051ae69e96fbcaf0d0a02ed7
2016-08-15 09:16:04 -07:00