summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_size.js
blob: 511b3530e03410fe4839bb50ec4be83b13549905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

var w = 25;
var h = 25;

var size = new Size(w,h);
var size2 = new Size();
size2.setHeight(size.height());
size2.setWidth(size.width());

if( size.width() != w )
{
  println( "W not "+ w +" " + size.width());
  exit(1);
}

if( size.height() != h )
{
  println( "H not "+ h +" " + size.height());
  exit(1);
}

println( "All tests passed");