Hi,

tests.html isn't meant to be used directly. If you open the Test Runner 
(test/index.html, it will load tests.html in an iframe and add the 
"testclass" search parameter to the URL.


Regards,
Daniel

On 08/08/2012 01:04 PM, totty wrote:
> Uncaught ReferenceError: __unknown_class__ is not defined
> (anonymous function)
> qx.Class.define.members.add TestSuite.js:64
> qx.Mixin.define.members.setTestNamespace MTestLoader.js:81
> qx.Class.define.members.main TestLoader.js:47
> qx.Class.define.members.base Object.js:141
> qx.Class.define.members.main TestLoader.js:53
> qx.Class.define.statics.ready BaseInit.js:77
> qx.Class.define.members.dispatchEvent Direct.js:134
> wrappedFunction Interface.js:451
> qx.Class.define.members.dispatchEvent Manager.js:873
> qx.Class.define.statics.fireEvent Registration.js:310
> qx.Class.define.members.__fireReady Application.js:188
> qx.Class.define.statics.onScriptLoaded Application.js:106
> qx.$$loader.signalStartup tests-source.js:159
> qx.$$loader.initUris tests-source.js:195
>
> If I debug into it the problem I've found:
> qx.dev.unit.TestLoader
> this.setTestNamespace(this._getClassNameFromUrl());
> this._getClassNameFromUrl() returns "__unknown_class__"
> into it uses the window.location.search
> in my case window.location.search===""
>
> so the source of the problem is because window.location.search=""
>
>
> But the problem is the unknown class error.
> Do you have any ideas what went wrong?
>
>
> Config.json
>
> {
>       "name"    : "ws",
>
>       "include" :[{
>               "path" : "${QOOXDOO_PATH}/tool/data/config/application.json"
>       }],
>
>       "export" :[
>               "api",
>               "api-data",
>               "build",
>               "clean",
>               "distclean",
>               "fix",
>               "info",
>               "inspector",
>               "lint",
>               "migration",
>               "pretty",
>               "profiling",
>               "source",
>               "source-all",
>               "source-hybrid",
>               "simulation-build",
>               "simulation-run",
>               "test",
>               "test-source",
>               "translation"
>       ],
>       
>       "default-job" : "source-hybrid",
>
>       "let" :{
>               "APPLICATION"  : "ws",
>               "QOOXDOO_PATH" : "qooxdoo-2.0-sdk",
>               // "QOOXDOO_PATH" :
> "../../../../../about_projects/third_party/qooxdoo/qooxdoo-2.0-sdk",
>               "QXTHEME"      : "ws.theme.Theme",
>               "API_INCLUDE"  : ["${APPLICATION}.*"],
>       // "API_EXCLUDE"  : ["qx.test.*", "${APPLICATION}.theme.*",
> "${APPLICATION}.test.*", "${APPLICATION}.simulation.*"],
>       "LOCALES"      : [ "en" ],
>       "CACHE"        : "/qxcache/qx${QOOXDOO_VERSION}/",
>       "ROOT"         : "."
>       },
>
>    // You only need to edit the remainder of this file, if you want to
> customize
>    // specific jobs, or add own job definitions.
>
>       "jobs" :{
>               //  "source-hybrid" :
>               // {
>               //       "include" : [
>               //               "${APPLICATION}.*"
>               //      ]
>               //      ,"exclude" : [
>               //              "qx.test.*",
>               //              "${APPLICATION}.test.*",
>               //              "${APPLICATION}.simulation.*"
>               //      ]
>               // }
>               // ,"source" :
>               // {
>               //       "include" : [
>               //               "${APPLICATION}.*"
>               //      ]
>               //      ,"exclude" : [
>               //              "qx.test.*",
>               //              "${APPLICATION}.test.*",
>               //              "${APPLICATION}.simulation.*"
>               //      ]
>               // }
>               // // ,"test" :
>               // // {
>               // //    "include" : [
>               // //            "${APPLICATION}.*"
>               // //   ]
>               // // }
>               // // ,"test-source" :
>               // // {
>               // //    "include" : [
>               // //            "${APPLICATION}.*"
>               // //   ]
>               // // }
>               // ,"build" :
>               // {
>               //       "include": [
>               //               "${APPLICATION}.*"
>               //      ]
>               //      ,"exclude": [
>               //              "qx.test.*",
>               //              "${APPLICATION}.test.*",
>               //              "${APPLICATION}.simulation.*"
>               //      ]
>               //      ,"compile-options": {
>               //              "code" :{
>               //                       "format": true
>               //                      ,"optimize": []
>               //              }
>               //      }
>               // }
>               // Uncomment the following entry to add a contrib or library to 
> your
>               // project; make sure to adapt the path to the Manifest.json; 
> if you are
>               // using a contrib: library, it will be downloaded into the 
> path specified
>               // by the 'cache/downloads' config key
>               /*
>               "libraries" :
>               {
>                 "library" :
>                 [
>                       {
>                         "manifest" :
> "../../../../../about_projects/third_party/qooxdoo/qooxdoo-1.6-sdk",
>                         "uri": "/qooxdoo"
>                       }
>                 ]
>               }
>               */
>
>               // If you want to tweak a job setting, see the following sample 
> where
>               // the "format" feature of the "build-script" job is overridden.
>               // To see a list of available jobs, invoke 'generate.py x'.
>               /*
>               ,"build-script" :
>               {
>                 "compile-options" :
>                 {
>                       "code" :
>                       {
>                         "format" : false
>                       }
>                 }
>               }
>               */
>       }
> }
>
> I have the default test case. If I remove it and generate the tests again I
> get an error because the file doesn't exists, so the generator doesn't
> really update the compiled code when no tests are supplied.
>
>
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/When-I-run-the-tests-html-or-tests-source-html-I-get-Uncaught-ReferenceError-unknown-class-is-not-de-tp7580924.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to