1
0
Fork 0
Commit Graph

995 Commits (6bd42986f77c7bfd155bf2683e1a9dbd6fa92b37)

Author SHA1 Message Date
Mike Gerwitz 1fc791fa31 Altered secure property test to work properly in IE8, which falls back due to its incomplete implementation of Object.defineProperty() 2010-12-28 13:45:33 -05:00
Mike Gerwitz 7b69a09a5a Altered browser-test.html failure message 2010-12-28 13:37:53 -05:00
Mike Gerwitz 729d7083da Added function to prefix failed client-side assertions with 'Assertion failed: ' 2010-12-28 13:26:04 -05:00
Mike Gerwitz c29d3a15d7 Corrected line over 80 character mark 2010-12-28 13:21:48 -05:00
Mike Gerwitz 0ea6df4c9e Added browser-test.html 2010-12-28 13:21:41 -05:00
Mike Gerwitz 34af8eec95 Moved @license (and changed to @preserved) so Closure Compiler would properly retain the block 2010-12-28 10:36:39 -05:00
Mike Gerwitz dce46bb555 Tests will not attempt to use Object.isFrozen() unless defined 2010-12-28 09:14:54 -05:00
Mike Gerwitz 665b11e116 Removed forEach from tests to support engines that have not yet implemented that method (new in ES5) 2010-12-28 09:14:35 -05:00
Mike Gerwitz ac6fb40c21 IE does not like 'item' as a var name 2010-12-28 09:04:27 -05:00
Mike Gerwitz 2325bd9a8f Resolved getter/setter test issues for browsers that do not support the functionality
- __define{Getter,Setter}__ had to be used rather than object notation due to syntax errors in older browsers
2010-12-28 09:02:23 -05:00
Mike Gerwitz 5dcc4452be Removing trailing commas from combine-test.tpl 2010-12-28 08:37:23 -05:00
Mike Gerwitz 3347b8f6d5 Added ease-full.js, which includes tests to be run client-side (initial implementation; may be buggy) 2010-12-28 00:23:13 -05:00
Mike Gerwitz 828a366f29 Renamed prop_parse.{parse => parseKeywords} 2010-12-27 23:12:37 -05:00
Mike Gerwitz 499e1c32db Added @license annotation to ensure Google Closure Compiler et. al. will not remove the license from the combined file 2010-12-27 23:07:55 -05:00
Mike Gerwitz 1b708bac63 Added property keyword parser tests (was previously encapsulated) 2010-12-27 23:04:55 -05:00
Mike Gerwitz 87e293e33f Property keyword parser now simply checks for spaces (to be flexible enough to support any keywords in the future) 2010-12-27 23:04:50 -05:00
Mike Gerwitz 3277a30d54 Removed now unnecessary abstract keyword check from util.propParse() 2010-12-27 22:32:30 -05:00
Mike Gerwitz 1364d5967f Abstract methods must contain a parameter list as an array 2010-12-27 22:30:28 -05:00
Mike Gerwitz 28cf2d0e2b Moved util abstract method tests into their own test case 2010-12-27 22:24:41 -05:00
Mike Gerwitz 69391f9b48 Finished correcting assertion tests with new implementation 2010-12-27 22:20:29 -05:00
Mike Gerwitz 46dbf56658 Updated README with new abstract method implementation 2010-12-27 22:17:21 -05:00
Mike Gerwitz e789e58000 Removed Class.abstractMethod in favor of property keyword 2010-12-27 22:11:37 -05:00
Mike Gerwitz f705f38640 Began adding prop_parser module and moved existing property keyword parser function into it 2010-12-27 20:56:36 -05:00
Mike Gerwitz 9666a5f80f Began adding property keyword parsing (concept) 2010-12-27 20:49:59 -05:00
Mike Gerwitz 3ef2a28e24 Merge branch 'master' of github.com:mikegerwitz/easejs 2010-12-23 15:59:57 -05:00
Mike Gerwitz f58586fc94 Added tests to ensure constructor is properly applied to subtypes 2010-12-23 15:57:45 -05:00
Mike Gerwitz a93ff61bde If setting a secure property fails, it will force a fallback to prevent performance degredation due to exceptions 2010-12-22 22:17:07 -05:00
Mike Gerwitz 98fd1e7c7c All tests now using common.require() to prepare for client-side testing 2010-12-21 23:25:12 -05:00
Mike Gerwitz a3cf31aa40 Tests now explicitly specify relative path to tested module
- Certain modules otherwise have naming conflicts (e.g. util in node.js is loaded instead)
2010-12-21 22:51:42 -05:00
Mike Gerwitz 7e7080ccbf util.defineSecureProp() no longer performs fallback check on each invocation 2010-12-21 22:41:50 -05:00
Mike Gerwitz d5f37f294e IE8 does not support Object.defineProperty on non-DOM objects
(see http://stackoverflow.com/questions/3830800/object-defineproperty-in-es5)
2010-12-21 14:37:34 -05:00
Mike Gerwitz e1d7b80d46 Calling hasOwnProperty via Object prototype in case it has been overridden 2010-12-21 10:09:18 -05:00
Mike Gerwitz bba0c252f5 make 'test' target now runs 'default' target 2010-12-20 22:51:06 -05:00
Mike Gerwitz 445fc936a2 Added basic test for combined file (does not yet test functionality) 2010-12-20 22:49:52 -05:00
Mike Gerwitz 572601f5a0 Added BASH tests to Makefile 2010-12-20 22:29:10 -05:00
Mike Gerwitz 8b8c7e8533 separated rmtrail function into its own tool and added test 2010-12-20 22:19:18 -05:00
Mike Gerwitz 3ffb150207 Tests for util.defineSecureProp() (had accidently omitted from previous commit) 2010-12-20 19:13:27 -05:00
Mike Gerwitz 3a0972c79d Removed unneeded 'continue' statement 2010-12-20 13:51:44 -05:00
Mike Gerwitz 1f40665e57 Added tests for util.defineSecureProp() 2010-12-20 13:43:12 -05:00
Mike Gerwitz 0d84cd829a util.defineSecureProp was failing in browsers that do not support Object.defineProperty()
- This is untested! Test needed.
2010-12-20 10:04:11 -05:00
Mike Gerwitz 559bb7e0f6 Combine tool now removes trailing commas from array and object definitions (for older browsers such as IE6) 2010-12-20 09:18:13 -05:00
Mike Gerwitz 5e999b8167 IE doesn't like using reserved words as properties
- This is one thing I'll have to complement IE on. Every browser should blow up on reserved words.
2010-12-20 08:42:05 -05:00
Mike Gerwitz 72f4dd0757 Added make targets: default, mkbuild, combine, clean 2010-12-19 23:51:22 -05:00
Mike Gerwitz 78179c3d9d [*] Added tools/combine script for client-side (browser) distributable file
- It should be noted that this won't yet work in IE6/7 (I'm not positive on IE7), since they are picky with trailing commas, and currently ease.js uses trailing commas on all array and object declarations
2010-12-19 23:41:46 -05:00
Mike Gerwitz cd9ef1ea71 Finished refactoring to remove result_data object in class extend() function 2010-12-19 13:54:31 -05:00
Mike Gerwitz 1ff9408885 Rearranged util.overrideMethod() arguments to match methodOverride propCopy() action (to avoid unnecessary mistakes and confusion) 2010-12-19 00:12:41 -05:00
Mike Gerwitz 600e389b40 Refactored abstract method logic out of util.propCopy() into class extend() 2010-12-19 00:11:39 -05:00
Mike Gerwitz 2789e5fcf9 Abstract map no longer passed to method_override() - it's only used in that method 2010-12-18 10:57:00 -05:00
Mike Gerwitz e39cfea741 Now exporting util's array_shrink() as util.arrayShrink() 2010-12-18 09:38:58 -05:00
Mike Gerwitz 3a2ddbb29b class.js 'extending' var is an argument and shouldn't be declared with var keyword 2010-12-18 08:24:15 -05:00