[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11232: Minor fix to get Rectangle t
From: |
Jon Crider |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11232: Minor fix to get Rectangle test case to compile and run |
Date: |
Wed, 08 Jul 2009 17:04:47 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 11232
committer: Jon Crider <address@hidden>
branch nick: trunk
timestamp: Wed 2009-07-08 17:04:47 -0600
message:
Minor fix to get Rectangle test case to compile and run
modified:
testsuite/misc-haxe.all/classes.all/geom/Rectangle_as.hx
------------------------------------------------------------
revno: 11228.3.1
committer: Jon Crider <address@hidden>
branch nick: cleanbr
timestamp: Wed 2009-07-08 16:37:16 -0600
message:
merged from trunk
modified:
libcore/DynamicShape.cpp
libcore/swf/TextRecord.cpp
testsuite/misc-haxe.all/classes.all/Boolean_as.hx
testsuite/misc-ming.all/DeviceFontTest.c
------------------------------------------------------------
revno: 11228.3.2
committer: Jon Crider <address@hidden>
branch nick: cleanbr
timestamp: Wed 2009-07-08 17:03:24 -0600
message:
fixed Rectangle haxe test so that it compiles and passes all tests
modified:
testsuite/misc-haxe.all/classes.all/geom/Rectangle_as.hx
=== modified file 'testsuite/misc-haxe.all/classes.all/geom/Rectangle_as.hx'
--- a/testsuite/misc-haxe.all/classes.all/geom/Rectangle_as.hx 2009-06-15
21:38:58 +0000
+++ b/testsuite/misc-haxe.all/classes.all/geom/Rectangle_as.hx 2009-07-08
23:03:24 +0000
@@ -194,10 +194,10 @@
//-------------------------------------------------------------
#if flash9
- var x1:Rectangle = new Rectangle();
+ var x1:Rectangle = untyped __new__(Rectangle);
DejaGnu.note("var x1:Rectangle = new Rectangle();");
#else
- var x1:Rectangle<Int> = new Rectangle();
+ var x1:Rectangle<Int> = untyped __new__(Rectangle);
DejaGnu.note("var x1:Rectangle<Int> = new Rectangle();");
#end
if (Type.typeof(x1) == ValueType.TObject) {
@@ -261,7 +261,7 @@
} else {
DejaGnu.fail("Rectangle object .height is not a
number");
}
- x1 = new Rectangle(1);
+ x1 = untyped __new__(Rectangle, 1);
DejaGnu.note("x1 = new Rectangle(1);");
if(untyped x1.hasOwnProperty('height')) {
DejaGnu.pass("Rectangle object has 'height' property");
@@ -333,7 +333,7 @@
//o1 = {}; o1.toString = function() { return '2'; };
var o1 = {};
Reflect.setField(o1, 'toString', function() { return '2'; });
- x1 = new Rectangle(0,0,untyped o1,null);
+ x1 = new Rectangle(0, 0, untyped o1, null);
DejaGnu.note("x1 = new Rectangle(0,0,untyped o1,null);");
if (x1.toString() == "(x=0, y=0, w=2, h=null)") {
DejaGnu.pass("Rectangle object is correct rectangle
(x=0, y=0, w=2, h=null)");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11232: Minor fix to get Rectangle test case to compile and run,
Jon Crider <=