gnash-commit
[Top][All Lists]
Advanced

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

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


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite/misc-ming.all key_event_test5ru...
Date: Tue, 10 Jul 2007 14:43:21 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/07/10 14:43:21

Added files:
        testsuite/misc-ming.all: key_event_test5runner.cpp 
Removed files:
        testsuite/misc-ming.all: Key_event_test5runner.cpp 

Log message:
        fix case in filename

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/key_event_test5runner.cpp?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Key_event_test5runner.cpp?cvsroot=gnash&r1=1.1&r2=0

Patches:
Index: key_event_test5runner.cpp
===================================================================
RCS file: key_event_test5runner.cpp
diff -N key_event_test5runner.cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ key_event_test5runner.cpp   10 Jul 2007 14:43:20 -0000      1.1
@@ -0,0 +1,85 @@
+/* 
+ *   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+ * 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ *
+ */ 
+
+#define INPUT_FILENAME "key_event_test5.swf"
+
+#include "MovieTester.h"
+#include "sprite_instance.h"
+#include "character.h"
+#include "dlist.h"
+#include "container.h"
+#include "log.h"
+
+#include "check.h"
+#include <string>
+#include <cassert>
+
+using namespace gnash;
+using namespace std;
+
+int
+main(int /*argc*/, char** /*argv*/)
+{
+  string filename =  string(INPUT_FILENAME);
+  MovieTester tester(filename);
+
+  gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance();
+  dbglogfile.setVerbosity(1);
+
+  sprite_instance* root = tester.getRootMovie();
+  assert(root);
+
+  tester.advance();
+  tester.advance();
+  tester.advance();
+  
+  as_value tmp;
+  // ???, can not find 'hasKeyPressed'?
+  xcheck(root->get_member("hasKeyPressed", &tmp));
+  check_equals(tmp.to_number(), 0.0);
+  
+  // Provide a key event and that's all.
+  // testing will be done in the SWF file.
+  tester.pressKey(key::A);
+  tester.releaseKey(key::A);
+
+  // advance to the 8th frame
+  for(int i=0; i<5; i++)
+  {
+    tester.advance();
+  }
+  check_equals(root->get_current_frame(), 8);
+  
+  // ???, can not find 'hasKeyPressed'?
+  xcheck(root->get_member("hasKeyPressed", &tmp));
+  xcheck_equals(tmp.to_number(), 1.0);
+  
+  // Provide a key event. 
+  tester.pressKey(key::A);
+  tester.releaseKey(key::A);
+  
+  // advance to the last frame
+  for(int i=0; i<5; i++)
+  {
+    tester.advance();
+  }
+  check_equals(root->get_current_frame(), root->get_frame_count()-1);
+   
+  return 0; 
+}

Index: Key_event_test5runner.cpp
===================================================================
RCS file: Key_event_test5runner.cpp
diff -N Key_event_test5runner.cpp
--- Key_event_test5runner.cpp   10 Jul 2007 11:45:34 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,85 +0,0 @@
-/* 
- *   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
- * 
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- * 
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- *
- *
- */ 
-
-#define INPUT_FILENAME "key_event_test5.swf"
-
-#include "MovieTester.h"
-#include "sprite_instance.h"
-#include "character.h"
-#include "dlist.h"
-#include "container.h"
-#include "log.h"
-
-#include "check.h"
-#include <string>
-#include <cassert>
-
-using namespace gnash;
-using namespace std;
-
-int
-main(int /*argc*/, char** /*argv*/)
-{
-  string filename =  string(INPUT_FILENAME);
-  MovieTester tester(filename);
-
-  gnash::LogFile& dbglogfile = gnash::LogFile::getDefaultInstance();
-  dbglogfile.setVerbosity(1);
-
-  sprite_instance* root = tester.getRootMovie();
-  assert(root);
-
-  tester.advance();
-  tester.advance();
-  tester.advance();
-  
-  as_value tmp;
-  // ???, can not find 'hasKeyPressed'?
-  xcheck(root->get_member("hasKeyPressed", &tmp));
-  check_equals(tmp.to_number(), 0.0);
-  
-  // Provide a key event and that's all.
-  // testing will be done in the SWF file.
-  tester.pressKey(key::A);
-  tester.releaseKey(key::A);
-
-  // advance to the 8th frame
-  for(int i=0; i<5; i++)
-  {
-    tester.advance();
-  }
-  check_equals(root->get_current_frame(), 8);
-  
-  // ???, can not find 'hasKeyPressed'?
-  xcheck(root->get_member("hasKeyPressed", &tmp));
-  xcheck_equals(tmp.to_number(), 1.0);
-  
-  // Provide a key event. 
-  tester.pressKey(key::A);
-  tester.releaseKey(key::A);
-  
-  // advance to the last frame
-  for(int i=0; i<5; i++)
-  {
-    tester.advance();
-  }
-  check_equals(root->get_current_frame(), root->get_frame_count()-1);
-   
-  return 0; 
-}




reply via email to

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