pivotal/jasmine — Issue #182: Tests on extended ascii charsets fail with jasmin-maven-plugin
Author: Hilberty
Created: 2012-01-23 14:12:19+00:00
State: open

Hello,

The following test :

describe('Test fonction htmlEncode',function()
{
it('Test encode characters',function()
{
input = 'ÜÄ';
expected = 'ÜÄ';
input = input.replace(/Ü/g,'Ü');
result = input.replace(/Ä/g,'Ä');
expect(result).toBe(expected);

result = 'Ü'.replace(/Ü/g,'Ü');
expect(result).toBe('Ü');

result = 'Ä'.replace(/Ä/g,'Ä');
expect(result).toBe('Ä');

input = 'ÜÄ';
input = input.replace(/Ü/g,'Ü');
expect(input).toBe('ÜÄ');

input = input.replace(/Ä/g,'Ä');
expect(input).toBe(expected);

input = 'Üabcdef';
input = input.replace(/Ü/g,'Ü');
expect(input).toBe('Üabcdef');
});
});

fails while executing from Eclipse with the jasmin-maven-plugin :

1.) Test fonction htmlEncode it Test encode characters <<< FAILURE!
* Expected 'ÜÜ' to be 'ÜÄ'.
* Passed.
* Passed.
* Expected 'ÜÜ' to be 'Ü?'.
* Expected 'ÜÜ' to be 'ÜÄ'.
* Passed.

Executed from a browser in SpecRunner.html, it returns no error.

Is there a way to configure the encoding ?