Bug 9112
Summary: | Some of the unit tests for script.aculo.us don't pass | ||
---|---|---|---|
Product: | WebKit | Reporter: | Sam Weinig <sam> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, ggaren, ian, rniwa, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Sam Weinig
If you go to http://script.aculo.us/ and download the latest version of script.aculo.us (version 1.6.1 at the time of writing) you'll find the ToT webkit does not pass all the unit tests provided. We fail all of the tests in:
Ajax.Autocompleter test
Position.clone test
and some of the tests in:
Ajax.InPlaceEditor test
Element extensions test
Unittest test
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Sam Weinig
The test that fails in the Element extensions test, "testElementGetStyle" notes that it fails because of bug 4125
Alexey Proskuryakov
*** Bug 9129 has been marked as a duplicate of this bug. ***
Ahmad Saleem
I am able to find only one test in v1.9.0 unit test, which fails in Safari 15.6 on macOS 12.5 only but not in Chrome Canary 106 and Firefox Nightly 104.
It is from "Slider.js" - test MultipleHandles:
_____________
testMultipleHandles: function() { with(this) {
var slider = new Control.Slider(['handle3-1','handle3-2','handle3-3'], 'track3', {range:$R(0,300)});
assertInstanceOf(Control.Slider, slider);
slider.setValue(20, 0);
slider.setValue(50, 1);
slider.setValue(70, 2);
assertEqual(20, slider.values[0]);
assertEqual(50, slider.values[1]);
assertEqual(70, slider.values[2]);
assertEqual("20px", slider.handles[0].style.left);
assertEqual("49px", slider.handles[1].style.left);
assertEqual("68px", slider.handles[2].style.left);
// should change last manipulated handled by -10,
// so check for handle with idx 2
slider.setValueBy(-10);
assertEqual(60, slider.values[2]);
slider.setValueBy(10, 0);
assertEqual(20, slider.values[0]);
slider.setValueBy(10, 1);
assertEqual(60, slider.values[1]);
slider.setValueBy(20, slider.activeHandleIdx);
assertEqual(80, slider.values[1]);
}},
__________
You can download latest version (as of today) from here - http://script.aculo.us/downloads
Radar WebKit Bug Importer
<rdar://problem/97529357>