Bug 9112

Summary: Some of the unit tests for script.aculo.us don't pass
Product: WebKit Reporter: Sam Weinig <sam>
Component: New BugsAssignee: 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   

Description Sam Weinig 2006-05-25 10:48:28 PDT
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
Comment 1 Sam Weinig 2006-05-25 10:50:56 PDT
The test that fails in the Element extensions test, "testElementGetStyle" notes that it fails because of bug 4125
Comment 2 Alexey Proskuryakov 2006-11-24 23:25:19 PST
*** Bug 9129 has been marked as a duplicate of this bug. ***
Comment 3 Ahmad Saleem 2022-07-24 16:23:16 PDT
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
Comment 4 Radar WebKit Bug Importer 2022-07-24 20:06:10 PDT
<rdar://problem/97529357>