netzke-testing 0.12.3 → 1.0.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +1 -0
- data/Gemfile +2 -3
- data/LICENSE.txt +2 -21
- data/README.md +8 -7
- data/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee +3 -0
- data/app/assets/javascripts/netzke/testing/helpers/grid.js.coffee +16 -10
- data/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee +16 -10
- data/app/assets/javascripts/netzke/testing/mocha/mocha.js +1948 -723
- data/app/assets/stylesheets/netzke/testing/mocha/mocha.css +53 -14
- data/lib/netzke/testing/version.rb +1 -1
- data/spec/rails_app/app/assets/javascripts/application.js +0 -3
- data/spec/rails_app/log/test.log +1699 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/-o-YaVl0T7eDJ9OrOV9RGwqVsIWZFHy_ANOiYAzd5xs.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/0ytTgUbUdaNC4f2HwTF9KPoNfEPoelbdxEEonmXcFY8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/2N-wUxBH2S0I0Vdtr2WyUGI2-QP0sx654c316Tle0Y8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/2zr8-0Qy8xKJVKL6YDLMlxXVM3UR6y6LsSiMHIzTzZk.cache +108 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/4iunyDf9YIjBbUNGIWAUzBvRnjmDZHzub-ySK64tNiM.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/5TvecBl1M5rB_WmUw9C6hq0IQscGnYdoEo54Nu7v-ro.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/5hZUq2VTJHMVrffS80-YXBfIY0KRFcqIczHYxwEq1O4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/65vMYBj8h-G6ncIkZb0XGK0AkccVIg3nRZ49oVQD5pk.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/6QkXlYVD0H86cOJuY4YsQwTsh9R-Xuei5H9g4AI6qLc.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/6oNBMh4vlr3nAg_zScBsRwoNfCUCwuMfxEsMExGEZ58.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/7AdXoQpyUKCU1NajQOdwfICU7NNx66_CjHVZaEPMie8.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/7SehKiu3k-7sWqyekPGAAlRRuG6zi4zImkGSsFZY5Hg.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/8hCQLzcxr1YiyVw4yQnLRkyjUeJPrBL68jaO0PBTVlc.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/8jJcLw-iylJTyRci7ICaZfve0wKGZehtTiFdrRGRSWY.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/9tmtKoc6UHxqorCSuhwhFQiEoEH8cz4oCJxJRhz6pyg.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/BOuRxAKchk00bl_QQch7_NnI7jvFEq1o3uicHp8nTlA.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/BT0NlH5e-SMXSFoONZqKAfPuxkCaZq9t03GG-tbqf2A.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/C3sjqQ7IyyEmT_fAJspAqXDgyZTcglD-YbgpfYb0zb0.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/CD3FvmKB9PfopODzH8rXDZqEJfXsuXpcIezK4WAZaBE.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/CeuWmVqZWhwboK9KGiK-VGwtZYLrqCRI93rvJQIBTXs.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/DBSkqZmCLWpPoAEFi-Reo4ICD1LTRmbh9XIbohHM47A.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/DYPq9tb1XNCaTXOoFjisXo-wigP-JudWtJeUfiqW0m8.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/EvRmssKzs-UegvrZuPi_Lk3cjNfMNSpr9xx0EshSNJo.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/GGgLpQ8oW-77EMBuKwruBXwHesf4NZu1Y3HiI1WMWDI.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Gg7p64pI2umKw5BpAglJ9RimpnYcL34FWDWFaKOz62A.cache +106 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Hdq71Baun4hNkGv_d0fbdq2p26likuSnCMUFkyDCFws.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/HsEibo-dY2kOc-nAvEmkUrm5PWK9cU-uNKra6itU_zw.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/I-Yu0SmONUDD_GaeBx_r3qR4yHoQ3aqFWAFmyHRL-zg.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/JCrLlkFPuQLUZyQYKL6_MMNgNGfz2-E323acSOSrt5k.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/JVTgVQi9d98c1SokUVnZ3aomHqJQbXZioi7g3ahm5Qc.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Jeh27aEr_ZWMJZqyCSIczaLGHt_DhIWwdukzqrGWa9w.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Jl60NqnWqOdABtuYSE5ZzrcmVseJlSZF2HNFS59FpY0.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/LRGtOZMxHuSVunCvJ63sVbxqDeAajlRaa6KCmyrAIqA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/MBeoy0q5Gyw0x-mJzpHAPysisACug1l0TL2vMkIyrOw.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/NOfTwd49eb86ANBlpdBndMO4ImhsuP1GRpxDAgwAfx4.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/N_20zEdBHyIIxuOVGv8q7BS0FFrNQ39k3CPwpMrSSYo.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/NvWH8wh5mUg78k87c85rP3NlI7nTtwzUxyYJOS5qiQI.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/OUo2VS0xOErRnbS1XuvOarZVKs-rq2NnztsajD5Fj10.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/OcWPwVd4Kv47Guuuu80JnFKoHk_okLZ7iRvgwzoZUHA.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Oyz8XfIMJQ3g6O0KjipLd4Kuem3B6xG5oyaHeeGmt-M.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/P8_qz5Ye3lrk5y6ujvXaW6SDLuGDLb262IusJX4dIVE.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/QW--4tkWOk_XF1gyoYZDRCyDehMpmnuVayrZKMVqZ7M.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/RLcVI-Rt6DzaGkFHDbXe0tx4wEBGaCRvnY_EycIsnuU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Sw3U88tBBMOJoXaXESCBCsrzso8r9YSJvEKU8JZ0BNo.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/TITv6kKDIwWXMb3nMX-OmOM1MM1mmsPg1LcooNVGG9Y.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/U4FMxMcT2pVuJgZ0D8A0QRXYk9HkjcVtq5UUkSZo4T8.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Ue75Stcow3jQUURIsInN3UD7RoV7zwQ9QJPNgjMhbxA.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/VQZge3nKTLKNH6_2qlFSj9_U6tszzMCCb3Dt8zlJLEs.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/WobYryqMWrJJ1FO5WUyND9wkonpQ-k0TFRSdlnJxQpA.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/WukfMkB8j3K5Frrr4G-QucfwskKB-pt4ZVVOF9ctkWc.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Xf7wDNUuYgkKRSiNrAXnd202ySmPUYH7Bz1uh7NkQ3E.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/Z-Roe_JsgiZpkKE_8qoVGx3TMCSMOoPhPovT2mkAz80.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ZdXCd9BmMKvjHoZpHQB-YyFuGeaVXUMrcAu2LxlrUD8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ZyKlKxGLZqtOZ1B5xqNJAy5I17yM_tX3zg_pk0fthZI.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/_DDbKzjQQKg6BAaLR73pixBhcBdqyJWKjrqiRBqz2eg.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/aEe8dZBMoJN_L7dQ9O90etuJwhYBZaxRLXPLkI4lwXU.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/apG5zQKUGPau7gI490daUVsPkALVV2jmMhHowsEv_uc.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/bigAjWfxtrTpxpryFTjOzuZDpQN1TQn2LgyC2UX608A.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/cC4aVV6WxpZQ1JV9tiqJ7c1SHial-X4fXVKIL_0cSNk.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/eCXlP45Wc2ERhH-FkBXtTDoS_WnSRhTr0gswBg-RRfY.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/eHpCOzyMXB_heVVMB3p9CZ1SETj9OoVhd_4vmYxVjKs.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ez37HtozJjtuxDJ7zpMQKEA8mmmXbeo_53mQclPL4aw.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/hAQjVJYrPwre3Y-BQAhTqMEnxoGw0-4b7qhLyD52dAg.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/hhhcBN5dBU2-wGGwdUrlOVzAEf9gVcyGUcbFgHPMDpw.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/j0GxKFTTXVLhgLP0leVrUzi9J5Vk0iv5I3Etnvf1hKo.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/jJtmBEK1VRWyzZxlArUpOZ_eLVOhOnVYeZqq0bIsyEc.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/jOCRCYDoaF271HXVDnj1U6FBFjKDD49spXEobwxFHoY.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/jUcv_4GPi-D5jFNvcEkNKl60eXmJV3voiuFymwpMEZc.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/jbxonAySrT1xyOeSqtRWBQz1vraED9_QfuVtGgPSPgw.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/kAGXQElMVnAPNM2Gp_-yrWrZ53cEVOJg4rSrqelTa74.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/kAtTT8eQbqVAPn3r0CLbsK1K84vbYpAJO-cDeriRN_4.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ll8jtsHipPGjByuvi5Cfqa4nz7g5si6q5arg9iK3hB8.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/m7qNudRV2a_8us3h_WQ0MenSTjES5wu_R4CiBsCFbIQ.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/nONU3x7H75eQ2Xaw3GMC0pKEWPyMtRxMJ9Y-l0Ayq6M.cache +33 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/nY3J4dkHhQje-2nXPqoqWH-9rzW2pK2HwaMfQbsfoIM.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/oKqCIaSUcvj99uxAW-9dg1RT6kfhkaQXnWbKgR05uXs.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/pOy3DFQaPfNEszqVjOsUM2d4fMorRrlDjUZCBLXfdWY.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/qA9aqXy3Z7iNVnH_S00EnHsObKjU4gBjfAi0LsK31ec.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/qoifXlMbps0buakSToSMKGUzijDll20f2phfUWvTveI.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/qp_LekwrmrrQbsDBfH1bncgh22iq3wpSny6qolOBxrg.cache +1 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/rAhxfb71OMNOOASBBxbuJxVZWEHebArv3N7bzdiPqmk.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/rED6iTVwl15Rj1k2LO38e0eCQitK-lMbvwpdz3G4mkU.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/rqAXfU5_qJvYOuvQFsv4-Bsr993COgaOPKutmISI9Ac.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/sbkgYxjKRuP8wk525y6VBNm00JCRW3rELt3mRvcfhUo.cache +13 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/srA1w0iCmsgYQvL_8ETHApAWdkqP7mRv3yRsts_8oks.cache +3 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/t3yuTQREe-_jlUIsoNfmFjrCncCUapXxX196qXhdtHM.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/uytA8PznWSrTlIdRDkZ0cbhA72VDTsEeaj1MEK3XS18.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/vWTf1CyFrHGKFakqn3HWhHKawzFnpTRXP0NaqPKXZj8.cache +2 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/vhuMIsvEbEL-zaLp1RZEIWd3sZDg4gCw6Am1tFfZEhY.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/ynpdaUV6dj37pI5aP5Ki9BLQf9UEcqkc_yL9fCeoOU0.cache +0 -0
- data/spec/rails_app/tmp/cache/assets/test/sprockets/v3.0/yr5lGfFwzSXWHCuM8LahKsYDRGqJt4eMSPcc7WU1gkE.cache +0 -0
- metadata +213 -28
- checksums.yaml +0 -7
- data/netzke-testing.gemspec +0 -21
@@ -0,0 +1 @@
|
|
1
|
+
"%���{�S��TaUkg���rr�@��6Z�Z8|�
|
@@ -0,0 +1 @@
|
|
1
|
+
"%���{�S��TaUkg���rr�@��6Z�Z8|�
|
@@ -0,0 +1,108 @@
|
|
1
|
+
I"�(function() {
|
2
|
+
Ext.apply(window, {
|
3
|
+
header: function(title) {
|
4
|
+
return Ext.ComponentQuery.query('panel{isVisible(true)}[title="' + title + '"]')[0] || 'header ' + title;
|
5
|
+
},
|
6
|
+
tab: function(title) {
|
7
|
+
return Ext.ComponentQuery.query('tab[text="' + title + '"]')[0] || 'tab ' + title;
|
8
|
+
},
|
9
|
+
panelWithContent: function(text) {
|
10
|
+
return Ext.DomQuery.select("div.x-panel-body:contains(" + text + ")")[0] || 'panel with content ' + text;
|
11
|
+
},
|
12
|
+
button: function(text) {
|
13
|
+
var button;
|
14
|
+
button = Ext.ComponentQuery.query("button{isVisible(true)}[text='" + text + "']")[0];
|
15
|
+
button || (button = Ext.ComponentQuery.query("button{isVisible(true)}[tooltip='" + text + "']")[0]);
|
16
|
+
return button || "button " + text;
|
17
|
+
},
|
18
|
+
tool: function(type) {
|
19
|
+
return Ext.ComponentQuery.query("tool{isVisible(true)}[type='" + type + "']")[0] || 'tool ' + type;
|
20
|
+
},
|
21
|
+
component: function(id) {
|
22
|
+
return Ext.ComponentQuery.query("panel{isVisible(true)}[id='" + id + "']")[0] || 'component ' + id;
|
23
|
+
},
|
24
|
+
somewhere: function(text) {
|
25
|
+
return Ext.DomQuery.select("*:contains(" + text + ")")[0] || 'anywhere ' + text;
|
26
|
+
},
|
27
|
+
currentPanelTitle: function() {
|
28
|
+
var panel;
|
29
|
+
panel = Ext.ComponentQuery.query('panel[hidden=false]')[0];
|
30
|
+
if (!panel) {
|
31
|
+
throw "Panel not found";
|
32
|
+
}
|
33
|
+
return panel.getHeader().getTitle().text;
|
34
|
+
},
|
35
|
+
combobox: function(name) {
|
36
|
+
return Ext.ComponentQuery.query("combo{isVisible(true)}[name='" + name + "']")[0] || 'combobox ' + name;
|
37
|
+
},
|
38
|
+
icon: function(tooltip) {
|
39
|
+
return Ext.DomQuery.select('img[data-qtip="' + tooltip + '"]')[0] || 'icon ' + tooltip;
|
40
|
+
},
|
41
|
+
textfield: function(name) {
|
42
|
+
return Ext.ComponentQuery.query("textfield{isVisible(true)}[name='" + name + "']")[0] || 'textfield ' + name;
|
43
|
+
},
|
44
|
+
numberfield: function(name) {
|
45
|
+
return Ext.ComponentQuery.query("numberfield{isVisible(true)}[name='" + name + "']")[0] || 'numberfield ' + name;
|
46
|
+
},
|
47
|
+
datefield: function(name) {
|
48
|
+
return Ext.ComponentQuery.query("datefield{isVisible(true)}[name='" + name + "']")[0] || 'datefield ' + name;
|
49
|
+
},
|
50
|
+
xdatetime: function(name) {
|
51
|
+
return Ext.ComponentQuery.query("xdatetime{isVisible(true)}[name='" + name + "']")[0] || 'xdatetime ' + name;
|
52
|
+
},
|
53
|
+
textFieldWith: function(text) {
|
54
|
+
return _componentLike("textfield", "value", text);
|
55
|
+
},
|
56
|
+
comboboxWith: function(text) {
|
57
|
+
return _componentLike("combo", "rawValue", text);
|
58
|
+
},
|
59
|
+
textAreaWith: function(text) {
|
60
|
+
return _componentLike("textareafield", "value", text);
|
61
|
+
},
|
62
|
+
numberFieldWith: function(value) {
|
63
|
+
return _componentLike("numberfield", "value", value);
|
64
|
+
},
|
65
|
+
activeWindow: function() {
|
66
|
+
return Ext.WindowMgr.getActive();
|
67
|
+
},
|
68
|
+
dateTimeFieldWith: function(value) {
|
69
|
+
var res;
|
70
|
+
res = 'xdatetime with value ' + value;
|
71
|
+
Ext.each(Ext.ComponentQuery.query('xdatetime'), function(item) {
|
72
|
+
if (item.getValue().toString() === (new Date(value)).toString()) {
|
73
|
+
res = item;
|
74
|
+
}
|
75
|
+
});
|
76
|
+
return res;
|
77
|
+
},
|
78
|
+
dateFieldWith: function(value) {
|
79
|
+
var res;
|
80
|
+
res = 'datefield with value ' + value;
|
81
|
+
Ext.each(Ext.ComponentQuery.query('datefield'), function(item) {
|
82
|
+
if (item.getValue().toString() === (new Date(value)).toString()) {
|
83
|
+
res = item;
|
84
|
+
}
|
85
|
+
});
|
86
|
+
return res;
|
87
|
+
},
|
88
|
+
eastRegion: function() {
|
89
|
+
return Ext.ComponentQuery.query("[region=east]")[0];
|
90
|
+
},
|
91
|
+
westRegion: function() {
|
92
|
+
return Ext.ComponentQuery.query("[region=west]")[0];
|
93
|
+
},
|
94
|
+
southRegion: function() {
|
95
|
+
return Ext.ComponentQuery.query("[region=south]")[0];
|
96
|
+
},
|
97
|
+
northRegion: function() {
|
98
|
+
return Ext.ComponentQuery.query("[region=north]")[0];
|
99
|
+
},
|
100
|
+
_componentLike: function(type, attr, value) {
|
101
|
+
return Ext.ComponentQuery.query(type + '[' + attr + '=' + value + ']')[0] || type + " with " + attr + " '" + value + "'";
|
102
|
+
}
|
103
|
+
});
|
104
|
+
|
105
|
+
window.anywhere = window.somewhere;
|
106
|
+
|
107
|
+
}).call(this);
|
108
|
+
:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/form.js.coffee?type=application/javascript&pipeline=self&id=118687ca711b6f62d51b4c92c6c67ff96950c053e69f60f146c548c6229c3b60:ET
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"wfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/grid.js.coffee;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/grid.js.coffee?type=application/javascript&pipeline=self&id=2767117624207fcf5d2fbc89d7c59f3bf1cef50821802a4933389cd0af02804f:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee?type=application/javascript&pipeline=self&id=1d84bc10bc70ae940f1f48d8ee744d1f8ce760018d7ee3472a609f641a6c127e:ET
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing.js?type=application/javascript&pipeline=self&id=02aa00b471a4320b931a026c3fe50631546617061395bc4f33e90a31588d7870:ET
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/grid.js.coffee?type=application/javascript&id=66ae3d071f9d28b502d41875e5f8d913c466e23561e59d4f66a7e1589de82ad6:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%�k��A�n�Lev�K;����R-���aB>���
|
@@ -0,0 +1 @@
|
|
1
|
+
"%I$���� �#��m-��e�����;8���8�
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%k��n����<�P]jn�TX��Z�"C�|i
|
Binary file
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"ofile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/mocha/mocha.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TT
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"wfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/form.js.coffee;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
"%��s_�#w�A��E�^h�/�������<w;��
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/mocha/mocha.js?type=application/javascript&pipeline=self&id=3c59c2ad66aca879d47d3d8ce4213b849ca00abdab120706793dc06c236cb567:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/form.js.coffee?type=application/javascript&id=92a3192c21e435366f52524f5b2214cebb24eff6700af6aecc2527649b40d693:ET
|
@@ -0,0 +1,106 @@
|
|
1
|
+
I"(function() {
|
2
|
+
Ext.Ajax.on('beforerequest', function() {
|
3
|
+
Netzke.ajaxCount = window.ajaxCount || 0;
|
4
|
+
return Netzke.ajaxCount += 1;
|
5
|
+
});
|
6
|
+
|
7
|
+
Ext.Ajax.on('requestcomplete', function() {
|
8
|
+
return Netzke.ajaxCount -= 1;
|
9
|
+
});
|
10
|
+
|
11
|
+
Ext.Ajax.on('requestexception', function() {
|
12
|
+
return Netzke.ajaxCount -= 1;
|
13
|
+
});
|
14
|
+
|
15
|
+
Ext.apply(window, {
|
16
|
+
wait: function() {
|
17
|
+
var callback, delay, waitInCycle;
|
18
|
+
waitInCycle = function(callback) {
|
19
|
+
var i, id;
|
20
|
+
i = 0;
|
21
|
+
return id = setInterval(function() {
|
22
|
+
i += 1;
|
23
|
+
if (i >= 100) {
|
24
|
+
clearInterval(id);
|
25
|
+
callback.call();
|
26
|
+
}
|
27
|
+
if (Netzke.ajaxCount === 0) {
|
28
|
+
return i = 100;
|
29
|
+
}
|
30
|
+
}, 200);
|
31
|
+
};
|
32
|
+
if (typeof arguments[0] === 'function') {
|
33
|
+
return waitInCycle(arguments[0]);
|
34
|
+
}
|
35
|
+
if (Ext.isNumber(arguments[0])) {
|
36
|
+
if (Ext.isFunction(arguments[1])) {
|
37
|
+
delay = arguments[0];
|
38
|
+
callback = arguments[1];
|
39
|
+
setInterval(function() {
|
40
|
+
return waitInCycle(resolve);
|
41
|
+
}, delay);
|
42
|
+
return null;
|
43
|
+
} else {
|
44
|
+
console.log("1", 1);
|
45
|
+
delay = arguments[0];
|
46
|
+
return new Promise(function(resolve, reject) {
|
47
|
+
return setInterval(function() {
|
48
|
+
return waitInCycle(resolve);
|
49
|
+
}, delay);
|
50
|
+
});
|
51
|
+
}
|
52
|
+
}
|
53
|
+
return new Promise(function(resolve, reject) {
|
54
|
+
return waitInCycle(resolve);
|
55
|
+
});
|
56
|
+
},
|
57
|
+
click: function(cmp) {
|
58
|
+
var el;
|
59
|
+
if (Ext.isString(cmp)) {
|
60
|
+
throw "Could not locate " + cmp;
|
61
|
+
} else if (cmp.isXType) {
|
62
|
+
if (cmp.isXType('tool')) {
|
63
|
+
el = cmp.toolEl;
|
64
|
+
} else {
|
65
|
+
el = cmp.getEl();
|
66
|
+
}
|
67
|
+
return el.dom.click();
|
68
|
+
} else if (Ext.isElement(cmp)) {
|
69
|
+
return cmp.click();
|
70
|
+
}
|
71
|
+
},
|
72
|
+
closeWindow: function() {
|
73
|
+
return Ext.ComponentQuery.query("window[hidden=false]")[0].close();
|
74
|
+
},
|
75
|
+
select: function(value, params, callback) {
|
76
|
+
var combo, rec;
|
77
|
+
if (params == null) {
|
78
|
+
params = params;
|
79
|
+
}
|
80
|
+
combo = params["in"];
|
81
|
+
if (combo.isExpanded) {
|
82
|
+
combo.setValue(combo.findRecordByDisplay(value));
|
83
|
+
return combo.collapse();
|
84
|
+
} else {
|
85
|
+
combo.onTriggerClick();
|
86
|
+
if (callback) {
|
87
|
+
return wait(function() {
|
88
|
+
var rec;
|
89
|
+
rec = combo.findRecordByDisplay(value);
|
90
|
+
combo.select(rec);
|
91
|
+
combo.fireEvent('select', combo, rec);
|
92
|
+
combo.collapse();
|
93
|
+
return callback.call();
|
94
|
+
});
|
95
|
+
} else {
|
96
|
+
rec = combo.findRecordByDisplay(value);
|
97
|
+
combo.select(rec);
|
98
|
+
combo.fireEvent('select', combo, rec);
|
99
|
+
return combo.collapse();
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
});
|
104
|
+
|
105
|
+
}).call(this);
|
106
|
+
:ET
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%����J���̈́�,�������Ub鐨���~�
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"\processors:type=application/javascript&file_type=application/javascript&engines=.coffee;TTI"zfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TT
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing.js?type=application/javascript&id=70807ddb39914d2db05deff3b4329e2c3155be1dd7abe6008fba5ba495d57b10:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%I$���� �#��m-��e�����;8���8�
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%.I�>��X���a�2��N��@�nڊ��}�
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"zfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee;TT
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"\processors:type=application/javascript&file_type=application/javascript&engines=.coffee;TTI"file-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee?type=application/javascript&pipeline=self&id=b0e8afde22cf7f1c6cdc359cede0e2acd946821e39404b3d4644ba57764d3b11:ET
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"\processors:type=application/javascript&file_type=application/javascript&engines=.coffee;TTI"zfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
"%$[ۀ��(˘���J�ױ%�̝����Y�o�;�
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%$[ۀ��(˘���J�ױ%�̝����Y�o�;�
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"\processors:type=application/javascript&file_type=application/javascript&engines=.coffee;TTI"wfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/grid.js.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/grid.js.coffee?type=application/javascript&pipeline=self&id=cf69ae59733135f30ef6f7bd44d3d81760e2c21befc778d5b36e2b908f978f16:ET
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"qfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/expect/expect.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TT
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"zfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/actions.js.coffee;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee?type=application/javascript&id=634ebb80da8f90f36d508cea4918c4a8ef2f04b52cad99578e6b3ca1cda59707:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee?type=application/javascript&id=cd08c689584703eca24a07b3f5fdd04d927552a9f859e5328953e218fa2335dd:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/mocha/mocha.js?type=application/javascript&id=da8816019dc552731eb847a0ead4c38a7cd47f713464e942bca70704562ac67c:ET
|
@@ -0,0 +1 @@
|
|
1
|
+
"%k��n����<�P]jn�TX��Z�"C�|i
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee?type=application/javascript&pipeline=self&id=669aab537c19bc94095c247ed34d5bbb144bce329c89128d11a221fa7dcf60fb:ET
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"zfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/queries.js.coffee;TT
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"cfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TT
|
Binary file
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"\processors:type=application/javascript&file_type=application/javascript&engines=.coffee;TTI"wfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/form.js.coffee;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TT
|
@@ -0,0 +1 @@
|
|
1
|
+
"%G'0�o���8(Ho����T�2�[/_u�ǖ�
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
I"�/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/expect/expect.js?type=application/javascript&id=8eb02867b49bcdd1b841bfdb4415906cff6d9837e62431c91fd103a6b8debc15:ET
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%I$���� �#��m-��e�����;8���8�
|
@@ -0,0 +1,3 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{
|
3
|
+
I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"pfile-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/stylesheets/netzke/testing/mocha/mocha.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TT
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
"%I$���� �#��m-��e�����;8���8�
|
@@ -0,0 +1,2 @@
|
|
1
|
+
[o:Set:
|
2
|
+
@hash{ I"environment-version:ETTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"file-digest:///Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/expectations.js.coffee;TT
|