Bug 9112 - Some of the unit tests for script.aculo.us don't pass
Summary: Some of the unit tests for script.aculo.us don't pass
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 9129 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-25 10:48 PDT by Sam Weinig
Modified: 2022-07-24 20:06 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>