зеркало из https://github.com/mozilla/pjs.git
bug 441794: simplify the testing slightly
This commit is contained in:
Родитель
ee973bcca8
Коммит
0191b34e4c
|
@ -563,7 +563,7 @@ function ShortcutEditor()
|
|||
var v, prefname;
|
||||
ok(eq((v = makeKeySpec.apply(undefined, t[0])), t[1]),
|
||||
"key spec for "+ t[0].toSource() +" should be "+ t[1].toSource() +", but was actually "+ v.toSource());
|
||||
ok((v = getKeyName(makeKeySpec.apply(undefined, t[0]))) == t[2],
|
||||
ok((v = getKeyName(t[1])) == t[2],
|
||||
"key name for "+ t[0].toSource() +" should be '"+ t[2] +"', but was actually '"+ v +"'");
|
||||
save((prefname = "test-" + t[2]), t[1]);
|
||||
ok(eq((v = load(prefname)), t[1]),
|
||||
|
|
Загрузка…
Ссылка в новой задаче