[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kjsembed
Subject:    [kjsembed] kdebindings/kjsembed/tests
From:       Ian Reinhart Geiser <geiseri () kde ! org>
Date:       2004-12-29 12:19:16
Message-ID: 20041229121916.C3B441BB03 () office ! kde ! org
[Download RAW message or body]

CVS commit by geiseri: 

Updated tests to use "this" for the QObject parents.


  M +4 -4      test_dcop_interface.js   1.4
  M +1 -1      test_qcombobox.js   1.2
  M +1 -1      test_qtimeedit.js   1.2
  M +1 -1      test_splashscreen.js   1.2


--- kdebindings/kjsembed/tests/test_dcop_interface.js  #1.3:1.4
@@ -4,4 +4,5 @@
 {
         println("Exiting the javascript now with " + exitValue);
+        exit(exitValue);
 }
 
@@ -22,5 +23,5 @@
 function pixmap(color)
 {
-        var pixmap = new Pixmap(this);
+        var pixmap = new Pixmap();
         pixmap.resize( 25,25 );
         pixmap.fill( color );
@@ -30,7 +31,6 @@
 function makeRef()
 {
-        var client = new DCOPClient(this);
-        var ref = new DCOPRef(this);
-        ref.setRef(client.appId(), "someInterface");
+        var client = new DCOPClient();
+        var ref = new DCOPRef(client.appId(), "someInterface");
         return ref;
 }

--- kdebindings/kjsembed/tests/test_qcombobox.js  #1.1:1.2
@@ -1,3 +1,3 @@
-var h=new QHBox();
+var h=new QHBox(this);
 var combo = new QComboBox(h, "combo");
 combo.insertItem("Item 1");

--- kdebindings/kjsembed/tests/test_qtimeedit.js  #1.1:1.2
@@ -1,3 +1,3 @@
-var h = new QHBox();
+var h = new QHBox(this);
 var dt = new QTimeEdit(h, 'tc');
 var n = new Date(); // now

--- kdebindings/kjsembed/tests/test_splashscreen.js  #1.1:1.2
@@ -1,4 +1,4 @@
 var lab = new QLabel(this);
-var splash = new QSplashScreen();
+var splash = new QSplashScreen(this);
 var pix = new Pixmap();
 pix.resize(128,128);


_______________________________________________
kjsembed mailing list
kjsembed@kde.org
https://mail.kde.org/mailman/listinfo/kjsembed
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic