gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DragDro...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/DragDro...
Date: Sun, 23 Dec 2007 23:16:41 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/12/23 23:16:41

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: DragDropTest.as 

Log message:
        add eval(_droptarget) tests.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5247&r2=1.5248
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DragDropTest.as?cvsroot=gnash&r1=1.5&r2=1.6

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5247
retrieving revision 1.5248
diff -u -b -r1.5247 -r1.5248
--- ChangeLog   23 Dec 2007 22:29:56 -0000      1.5247
+++ ChangeLog   23 Dec 2007 23:16:40 -0000      1.5248
@@ -1,5 +1,10 @@
 2007-12-23 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/DragDropTest.as: add eval(_droptarget)
+         tests.
+
+2007-12-23 Sandro Santilli <address@hidden>
+
        * server/dlist.h: const version of visitBackward.
        * server/character.h: add virtual findDropTarget method.
        * server/character.cpp (computeTargetPath): include _levelX prefix

Index: testsuite/misc-ming.all/DragDropTest.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/DragDropTest.as,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- testsuite/misc-ming.all/DragDropTest.as     23 Dec 2007 22:29:57 -0000      
1.5
+++ testsuite/misc-ming.all/DragDropTest.as     23 Dec 2007 23:16:41 -0000      
1.6
@@ -8,7 +8,7 @@
 //
 //
 
-rcsid="$Id: DragDropTest.as,v 1.5 2007/12/23 22:29:57 strk Exp $";
+rcsid="$Id: DragDropTest.as,v 1.6 2007/12/23 23:16:41 strk Exp $";
 
 #define info _root.note
 #define note _root.note
@@ -199,6 +199,7 @@
        _root.onMouseDown = function()
        {
                check_equals(_root.draggable50._droptarget, "");
+               check_equals(eval(_root.draggable50._droptarget), undefined);
                test2();
        };
 };
@@ -209,6 +210,7 @@
        _root.onMouseDown = function()
        {
                check_equals(_root.draggable50._droptarget, "/target10");
+               check_equals(eval(_root.draggable50._droptarget), 
_level0.target10);
                test3();
        };
 };
@@ -219,6 +221,7 @@
        _root.onMouseDown = function()
        {
                check_equals(_root.draggable50._droptarget, "/target20");
+               check_equals(eval(_root.draggable50._droptarget), 
_level0.target20);
                test4();
        };
 };
@@ -229,6 +232,7 @@
        _root.onMouseDown = function()
        {
                check_equals(_root.draggable50._droptarget, "/target100");
+               check_equals(eval(_root.draggable50._droptarget), 
_level0.target100);
                test5();
        };
 };
@@ -239,6 +243,7 @@
        _root.onMouseDown = function()
        {
                check_equals(_root.draggable50._droptarget, 
"_level50/target10"); 
+               check_equals(eval(_root.draggable50._droptarget), 
_level50.target10);
                test6();
        };
 };
@@ -249,6 +254,7 @@
        _root.onMouseDown = function()
        {
                check_equals(_root.draggable50._droptarget, 
"_level50/target20"); 
+               check_equals(eval(_root.draggable50._droptarget), 
_level50.target20);
                test7();
        };
 };
@@ -259,6 +265,7 @@
        _root.onMouseDown = function()
        {
                check_equals(_root.draggable50._droptarget, 
"_level50/target100");
+               check_equals(eval(_root.draggable50._droptarget), 
_level50.target100);
                test8();
        };
 };
@@ -269,6 +276,7 @@
        _root.onMouseDown = function()
        {
                check_equals(_root.draggable50._droptarget, 
"/loadedTarget/target10");
+               check_equals(eval(_root.draggable50._droptarget), 
_level0.loadedTarget.target10);
                test9();
        };
 };
@@ -279,6 +287,7 @@
        _root.onMouseDown = function()
        {
                check_equals(_root.draggable50._droptarget, 
"/loadedTarget/target20");
+               check_equals(eval(_root.draggable50._droptarget), 
_level0.loadedTarget.target20);
                test10();
        };
 };
@@ -289,6 +298,7 @@
        _root.onMouseDown = function()
        {
                check_equals(_root.draggable50._droptarget, 
"/loadedTarget/target100");
+               check_equals(eval(_root.draggable50._droptarget), 
_level0.loadedTarget.target100);
 
         // move the draggable over the first green square
         _root.draggable50._x = _root.draggable50._y = 50;
@@ -315,7 +325,7 @@
 {
        _root.ENDOFTEST = true;
        note("END OF TEST");
-       check_totals(11);
+       check_totals(21);
        _root.onMouseDown = undefined;
 };
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]