function testImageProperties( image )
{
   tprop( "border", "number" );
   tprop( "complete", "boolean" );
   tprop( "height", "number" );
   tprop( "hspace", "number" );
   tprop( "vspace", "number" );

   if( is_phase( 2 ) )
      tprop( "lowsrc", "string" );
   
   tprop( "name", "string" );
   
   tprop( "src", "string" );
   tprop( "width", "number" );

   test( "border", image.border, 1 );
   test( "hspace", image.hspace, 2 );
   test( "vspace", image.vspace, 10 );

   if( image.lowsrc != undefined )
   {
      test( "lowsrc", image.lowsrc, "http://www.opera.com/graphics/company/gallery/ledergruppe.jpg" );
   }
   
   test( "name", image.name, "mypicture" );
   test( "src", image.src, "http://www.opera.com/graphics/logo_z.gif" );

   image.src = "http://www.opera.com/newimage.jpg";
   test( "changing src", image.src, "http://www.opera.com/newimage.jpg" );

   if( image.lowsrc != undefined )
   {
      image.lowsrc = "http://www.opera.com/newlowimage.jpg";
      test( "changing lowsrc", image.lowsrc, "http://www.opera.com/newlowimage.jpg" );
   }

   /* Read-only JS 1.3, not read-only in DOM2-HTML */
   image.border = 2;
   image.width = 1;
   image.height = 1;
   image.hspace = 1;
   image.vspace = 1;
   image.name ="new name";
   
   test( "changing image.border", image.border, 2 );
   test( "changing image.width", image.width, 1 );
   test( "changing image.height", image.height, 1 );
   test( "changing image.hspace", image.hspace, 1 );
   test( "changing image.vspace", image.vspace, 1 );
   test( "changing image.name", image.name, "new name" );

   expect_exception( "Changing a readonly value, complete", Error, function() { image.complete = true; } ); // Bug #85182 is fixed
}
/* Width and height value tests are performed in main() */
Width and height value tests are performed in main()
Width and height value tests are performed in main ()
function testImageProperties( image )
{
   tprop( "border", "number" );
   tprop( "complete", "boolean" );
   tprop( "height", "number" );
   tprop( "hspace", "number" );
   tprop( "vspace", "number" );
   if( is_phase( 2 ) )
      tprop( "lowsrc", "string" );
   tprop( "name", "string" );
   tprop( "src", "string" );
   tprop( "width", "number" );
   test( "border", image.border, 1 );
   test( "hspace", image.hspace, 2 );
   test( "vspace", image.vspace, 10 );
   if( image.lowsrc != undefined )
   {
      test( "lowsrc", image.lowsrc, "http://www.opera.com/graphics/company/gallery/ledergruppe.jpg" );
   }
   test( "name", image.name, "mypicture" );
   test( "src", image.src, "http://www.opera.com/graphics/logo_z.gif" );
   image.src = "http://www.opera.com/newimage.jpg";
   test( "changing src", image.src, "http://www.opera.com/newimage.jpg" );
   if( image.lowsrc != undefined )
   {
      image.lowsrc = "http://www.opera.com/newlowimage.jpg";
      test( "changing lowsrc", image.lowsrc, "http://www.opera.com/newlowimage.jpg" );
   }
   image.border = 2;
   image.width = 1;
   image.height = 1;
   image.hspace = 1;
   image.vspace = 1;
   image.name ="new name";
   test( "changing image.border", image.border, 2 );
   test( "changing image.width", image.width, 1 );
   test( "changing image.height", image.height, 1 );
   test( "changing image.hspace", image.hspace, 1 );
   test( "changing image.vspace", image.vspace, 1 );
   test( "changing image.name", image.name, "new name" );
   expect_exception( "Changing a readonly value, complete", Error, function() { image.complete = true; } ); 
}
function testImageProperties ( image ) { tprop ( "border" , "number" ) ; tprop ( "complete" , "boolean" ) ; tprop ( "height" , "number" ) ; tprop ( "hspace" , "number" ) ; tprop ( "vspace" , "number" ) ; if ( is_phase ( 2 ) ) tprop ( "lowsrc" , "string" ) ; tprop ( "name" , "string" ) ; tprop ( "src" , "string" ) ; tprop ( "width" , "number" ) ; test ( "border" , image . border , 1 ) ; test ( "hspace" , image . hspace , 2 ) ; test ( "vspace" , image . vspace , 10 ) ; if ( image . lowsrc != undefined ) { test ( "lowsrc" , image . lowsrc , "http://www.opera.com/graphics/company/gallery/ledergruppe.jpg" ) ; } test ( "name" , image . name , "mypicture" ) ; test ( "src" , image . src , "http://www.opera.com/graphics/logo_z.gif" ) ; image . src = "http://www.opera.com/newimage.jpg" ; test ( "changing src" , image . src , "http://www.opera.com/newimage.jpg" ) ; if ( image . lowsrc != undefined ) { image . lowsrc = "http://www.opera.com/newlowimage.jpg" ; test ( "changing lowsrc" , image . lowsrc , "http://www.opera.com/newlowimage.jpg" ) ; } image . border = 2 ; image . width = 1 ; image . height = 1 ; image . hspace = 1 ; image . vspace = 1 ; image . name = "new name" ; test ( "changing image.border" , image . border , 2 ) ; test ( "changing image.width" , image . width , 1 ) ; test ( "changing image.height" , image . height , 1 ) ; test ( "changing image.hspace" , image . hspace , 1 ) ; test ( "changing image.vspace" , image . vspace , 1 ) ; test ( "changing image.name" , image . name , "new name" ) ; expect_exception ( "Changing a readonly value, complete" , Error , function ( ) { image . complete = true ; } ) ; }
Width and height value tests are performed in main()
Width and height value tests are performed in main ()
/* Read-only JS 1.3, not read-only in DOM2-HTML */ // Bug #85182 is fixed