mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
JavaScript Tests - modify test for BOM to whitespace conversion, bug 430740
This commit is contained in:
parent
02f6da6fec
commit
97df12d1ba
@ -38,7 +38,7 @@
|
|||||||
var gTestfile = 'regress-368516.js';
|
var gTestfile = 'regress-368516.js';
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
var BUGNUMBER = 368516;
|
var BUGNUMBER = 368516;
|
||||||
var summary = 'Ignore unicode BOM characters';
|
var summary = 'Treat unicode BOM characters as whitespace';
|
||||||
var actual = '';
|
var actual = '';
|
||||||
var expect = '';
|
var expect = '';
|
||||||
|
|
||||||
@ -58,12 +58,13 @@ function test()
|
|||||||
|
|
||||||
for (var i = 0; i < bomchars.length; i++)
|
for (var i = 0; i < bomchars.length; i++)
|
||||||
{
|
{
|
||||||
expect = 'No Error';
|
expect = 'howdie';
|
||||||
actual = 'No Error';
|
actual = '';
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
eval("hi" + bomchars[i] + "there = 'howdie';");
|
eval("var" + bomchars[i] + "hithere = 'howdie';");
|
||||||
|
actual = hithere;
|
||||||
}
|
}
|
||||||
catch(ex)
|
catch(ex)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user