Commit Graph

362 Commits

Author SHA1 Message Date
Andrew Dupont
67107651c2 Update DOM unit tests to avoid failing on Element#replace tests in Opera. 2008-09-07 16:53:33 -07:00
jdalton
1d0fb77ec3 Force Element.Methods.Simulated.hasAttribute() to return a boolean value. 2008-09-07 16:30:11 -07:00
Andrew Dupont
b49c572fa0 Stop Form.Element.disable from stealing focus. 2008-09-07 10:58:47 -07:00
Andrew Dupont
b52a55482e Small unit test fix. 2008-09-07 10:56:33 -07:00
Tobie Langel
6004aa8289 Ensure Element.hide and Element.show return an element, even if you pass an element ID. 2008-09-06 22:47:26 -07:00
Tobie Langel
ae707f4475 Fix an issue where Element#getStyle('height') returns null if the height is set to "auto." 2008-09-03 18:27:04 -07:00
Tobie Langel
919b952ec3 Add unit tests for Element#descendantOf. 2008-09-03 16:42:31 -07:00
Tobie Langel
6847d27509 Form#serializeElements should not serialize file inputs. 2008-09-03 16:33:03 -07:00
Andrew Dupont
9787801f06 Fix an issue with calling Event.pointer before the DOM is loaded. (kangax, jddalton) [#4 state:resolved] 2008-09-03 15:33:56 -07:00
Tobie Langel
b4ea2abda1 Element#down on an input element should not raise error. 2008-09-03 14:16:32 -07:00
Tobie Langel
b628c6de5c Avoid potential memory leaks in Firefox. [#12 state:resolved] 2008-09-03 12:19:28 -07:00
Tobie Langel
fecdee6f63 More unit tests for Object.isHash. 2008-09-03 12:19:15 -07:00
Tobie Langel
206a4c824f Allow Function#argumentNames to handle line breaks between arguments. 2008-09-03 12:17:53 -07:00
Thomas Fuchs
55af63fdd6 For consistency, add additional optional parameter "context" to Number.prototype.times. (samleb) 2008-09-03 12:07:57 -07:00
Samuel Lebeau
15b43b7633 Add context argument to Number#times 2008-09-03 11:45:59 -07:00
Thomas Fuchs
49b921a5c7 ignore DS_Store files 2008-09-03 11:45:15 -07:00
Tobie Langel
5a1ef1e05c Fix Function#argumentNames. 2008-09-03 11:44:47 -07:00
Tobie Langel
d1d2c3592d Fix typo. 2008-09-03 11:43:15 -07:00
Tobie Langel
9c8d9d89d6 Replace all instances of foo.__proto__ by foo['__proto__'] for Caja-compliance. 2008-09-02 19:06:25 -07:00
Tobie Langel
de5cc4a0f9 Speed up Function#argumentNames. Avoid Enum dependency. 2008-09-02 19:03:23 -07:00
kangax
b75bc189ec Fix Event#element accessing nonexistent tagName property (e.g. when element is a document) 2008-09-02 18:58:50 -07:00
Tobie Langel
9bcaa91560 Super minor change. Still learning git. 2008-09-02 18:51:05 -07:00
Andrew Dupont
2c03d1a837 Amended failing Element#identify test. 2008-09-02 18:48:27 -07:00
Daniel Von Fange
a463068087 Changed checkout location in README to github. 2008-09-02 18:41:50 -07:00
Tobie Langel
ba6934ed87 Make Rake auto-generate test/unit/temp directory if it is missing. 2008-09-02 18:40:59 -07:00
Tobie Langel
ae24df95ba update changelog. 2008-09-02 18:34:59 -07:00
Tobie Langel
bf967e3a41 yet more unittest clean-up 2008-09-02 18:22:57 -07:00
Tobie Langel
2d337cf367 Minor modifications to unit tests. 2008-09-02 18:21:18 -07:00
Tobie Langel
cf5d18097e refactored unit tests quite a bit. Added JS and CSS fixtures. 2008-09-02 18:19:41 -07:00
Tobie Langel
81de0e3a77 seperated test files into JS and HTML fixtures. Added Ruby test file builder and test template. 2008-04-16 16:51:20 +02:00
Andrew Dupont
a1d89b4503 Fixed a faulty variable assignment, the result of my own idiocy last week. 2008-04-04 12:55:59 -05:00
Andrew Dupont
1c00700894 Fix parentheses. 2008-03-31 13:58:10 -05:00
Andrew Dupont
ab8cc48b8d Account for context to assure Element#down, et al., work properly with Selectors API. 2008-03-31 12:51:44 -05:00
Andrew Dupont
ee52460014 Refactored unittest.js so that it does not rely on Selector methods. (Easier to debug Selector test failures.) 2008-03-31 12:07:46 -05:00
Andrew Dupont
d13a93882c Fix issue where Safari improperly reports an element as a descendant of itself. 2008-03-30 21:02:47 -05:00
Andrew Dupont
a3f7b712c3 Greatly simplify IE's implementation of Element#descendantOf. 2008-03-30 20:07:47 -05:00
Andrew Dupont
b03d4d40a0 Merge branch 'master' of git@github.com:sstephenson/prototype 2008-03-29 22:23:50 -05:00
Andrew Dupont
7062189fed Added Prototype.BrowserFeatures.SelectorsAPI boolean. 2008-03-29 22:21:58 -05:00
Andrew Dupont
35a70710b0 Prevent exception when using Selector to search for an attribute that is not present. 2008-03-28 13:31:36 -05:00
Andrew Dupont
55e5d645e1 Fix issues where Firefox improperly returns the wrong node from a call to Event.element. Also fixes possible exception in Event.element in IE. 2008-03-28 13:13:16 -05:00
Andrew Dupont
0c676269e9 Fix issue where Safari 3 deletes custom properties from the document object when the page is returned to via the back button. 2008-03-28 12:48:42 -05:00
Andrew Dupont
d238a55586 Added 'prototype.js' to dist/.gitignore so it won't get added on checkins. 2008-03-27 15:00:35 -05:00
Andrew Dupont
8e5eede8f8 Adding empty .gitignore file so that 'dist' directory will be recognized by git. 2008-03-27 11:52:42 -05:00
Andrew Dupont
03c1530014 Integrate support for the W3C Selectors API into the Selector class. Will now use the API when possible (browser supports the API *and* recognizes the given selector). Means minor changes to the semantics of :enabled, :disabled, and :empty in order to comply with CSS spec. 2008-03-27 01:18:15 -05:00
Tobie Langel
855e27311d prototype: Avoid re-extending element in Element#getDimensions. 2008-03-19 14:04:52 +00:00
Tobie Langel
598387f137 prototype: Prevent Hash#toQueryString from serializing objets. 2008-03-19 13:01:47 +00:00
Tobie Langel
32b1b6b7cd prototype: Fix Event#pointer in IE standard mode. Closes #9920. 2008-03-19 07:01:49 +00:00
Andrew Dupont
6a2d81ce62 Fixed an improperly-encoded apostrophe in a comment. 2008-03-17 15:59:58 +00:00
Tobie Langel
78c4b99df7 prototype: Instanciate Test.Unit.Logger on window load. 2008-03-16 20:00:07 +00:00
Tobie Langel
2ab483b695 prototype: unit tests clean-up. 2008-03-16 19:47:17 +00:00