Lines Matching refs:compare

93     it("should compare comparison results equally", function() {
98 var result = ComparisonResult.compare(comparisonResult, anotherComparisonResult);
103 it("should compare comparison results not equal penalty points", function() {
108 var result = ComparisonResult.compare(comparisonResult, anotherComparisonResult);
113 it("should compare comparison results with equal penalty points but one with additional info", function() {
118 var result = ComparisonResult.compare(comparisonResult, anotherComparisonResult);
123 it("should compare comparison results with null", function() {
128 var result = ComparisonResult.compare(comparisonResult, anotherComparisonResult);
139 comparisonResults.sort(ComparisonResult.compare);
151 it("should compare with no penalty points", function () {
157 var comparisonResult = ScalarComparator.compare(currentValue, storedValue, config);
163 it("should compare when stored value is different to current value", function () {
169 var comparisonResult = ScalarComparator.compare(currentValue, storedValue, config);
175 it("should compare when stored value is not null and current value is null", function () {
181 var comparisonResult = ScalarComparator.compare(currentValue, storedValue, config);
187 it("should compare when stored value is null and current value is not null", function () {
193 var comparisonResult = ScalarComparator.compare(currentValue, storedValue, config);
201 it("should compare screens that are equal", function() {
207 var comparisonResult = ScreenComparator.compare(currentValue, storedValue, config);
213 it("should compare screens that are null", function() {
219 var comparisonResult = ScreenComparator.compare(currentValue, storedValue, config);
225 it("should compare screens with null values", function() {
231 var comparisonResult = ScreenComparator.compare(currentValue, storedValue, config);
237 it("should compare screens when stored screen width is null", function() {
243 var comparisonResult = ScreenComparator.compare(currentValue, storedValue, config);
249 it("should compare screens when stored screen width is different to current screen width", function() {
255 var comparisonResult = ScreenComparator.compare(currentValue, storedValue, config);
261 it("should compare screens when stored screen height is null", function() {
267 var comparisonResult = ScreenComparator.compare(currentValue, storedValue, config);
273 it("should compare screens when stored screen height is different to current screen height", function() {
279 var comparisonResult = ScreenComparator.compare(currentValue, storedValue, config);
285 it("should compare screens when stored screen colour depth is null", function() {
291 var comparisonResult = ScreenComparator.compare(currentValue, storedValue, config);
297 it("should compare screens when stored screen colour depth is different to current screen colour depth", function() {
303 var comparisonResult = ScreenComparator.compare(currentValue, storedValue, config);
312 it("should compare multi value strings when stored value is null and current value is empty", function() {
318 var comparisonResult = MultiValueComparator.compare(currentValue, storedValue, config);
325 it("should compare multi value strings when both are null", function() {
331 var comparisonResult = MultiValueComparator.compare(currentValue, storedValue, config);
338 it("should compare multi value strings when both are empty", function() {
344 var comparisonResult = MultiValueComparator.compare(currentValue, storedValue, config);
351 it("should compare multi value strings when current value is null", function() {
357 var comparisonResult = MultiValueComparator.compare(currentValue, storedValue, config);
364 it("should compare multi value strings when stored value is null", function() {
370 var comparisonResult = MultiValueComparator.compare(currentValue, storedValue, config);
377 it("should compare multi value strings when both are equal", function() {
383 var comparisonResult = MultiValueComparator.compare(currentValue, storedValue, config);
390 it("should compare multi value string when there are less differences than max", function() {
396 var comparisonResult = MultiValueComparator.compare(currentValue, storedValue, config);
403 it("should compare multi value string when there are more differences than max", function() {
409 var comparisonResult = MultiValueComparator.compare(currentValue, storedValue, config);
416 it("should compare multi value string when there is less percentage diff than max", function() {
422 var comparisonResult = MultiValueComparator.compare(currentValue, storedValue, config);
429 it("should compare multi value string when there is more percentage diff than max", function() {
435 var comparisonResult = MultiValueComparator.compare(currentValue, storedValue, config);
445 it("should compare user agents", function () {
451 var comparisonResult = UserAgentComparator.compare(currentValue, storedValue, config);
458 it("should compare user agents ignoring version numbers", function () {
464 var comparisonResult = UserAgentComparator.compare(currentValue, storedValue, config);
471 it("should compare user agents when both are null", function () {
477 var comparisonResult = UserAgentComparator.compare(currentValue, storedValue, config);
482 it("should compare user agents when current value is null", function () {
488 var comparisonResult = UserAgentComparator.compare(currentValue, storedValue, config);
495 it("should compare user agents when stored value is null", function () {
501 var comparisonResult = UserAgentComparator.compare(currentValue, storedValue, config);
512 it("should compare location when both locations are null", function () {
518 var comparisonResult = GeolocationComparator.compare(current, stored, config);
523 it("should compare location when both latitudes are null", function () {
529 var comparisonResult = GeolocationComparator.compare(current, stored, config);
534 it("should compare location when both longitudes are null", function () {
540 var comparisonResult = GeolocationComparator.compare(current, stored, config);
545 it("should compare location when current location is null", function () {
551 var comparisonResult = GeolocationComparator.compare(current, stored, config);
558 it("should compare location when current latitude is null", function () {
564 var comparisonResult = GeolocationComparator.compare(current, stored, config);
571 it("should compare location when current longitude is null", function () {
577 var comparisonResult = GeolocationComparator.compare(current, stored, config);
584 it("should compare location when stored location is null", function () {
590 var comparisonResult = GeolocationComparator.compare(current, stored, config);
597 it("should compare location when stored latitude is null", function () {
603 var comparisonResult = GeolocationComparator.compare(current, stored, config);
610 it("should compare location when stored longitude is null", function () {
616 var comparisonResult = GeolocationComparator.compare(current, stored, config);
623 it("should compare locations that are equal", function () {
629 var comparisonResult = GeolocationComparator.compare(current, stored, config);
635 it("should compare locations that are within tolerable range", function () {
641 var comparisonResult = GeolocationComparator.compare(current, stored, config);
647 it("should compare locations that are outside tolerable range", function () {
653 var comparisonResult = GeolocationComparator.compare(current, stored, config);