rwdmovies 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/Readme.txt +47 -30
  2. data/code/ag1core/aa0begin.rb +18 -18
  3. data/code/ag1core/rwdtinkerversion.rb +15 -15
  4. data/code/xa5rwdtinkercallable/callable.rb +12 -12
  5. data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +21 -21
  6. data/code/xb1rwdtinkerbackwindow/{lm1installapplet.rb → installapplet.rb} +21 -20
  7. data/code/xb1rwdtinkerbackwindow/{05listinstalledfiles.rb → listinstalledfiles.rb} +1 -1
  8. data/code/xb1rwdtinkerbackwindow/{ll5listzips.rb → listzips.rb} +9 -7
  9. data/code/xb1rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -0
  10. data/code/xb1rwdtinkerbackwindow/loadconfigurationvariables.rb +13 -0
  11. data/code/xb1rwdtinkerbackwindow/{ll1openname.rb → openappletname.rb} +18 -18
  12. data/code/xb1rwdtinkerbackwindow/{mm1removeapplet.rb → removeapplet.rb} +28 -28
  13. data/code/xb1rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -14
  14. data/code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb +18 -0
  15. data/code/zz0applicationend/zz0end.rb +4 -4
  16. data/configuration/language.cnf +5 -0
  17. data/configuration/rwdmovies.cnf +0 -1
  18. data/configuration/rwdmoviesversion.cnf +2 -0
  19. data/configuration/rwdplayscriptsversion.cnf +2 -0
  20. data/configuration/rwdtinker.cnf +12 -0
  21. data/configuration/rwdtinkerversion.cnf +2 -0
  22. data/configuration/tinkerwin2variables.cnf +8 -0
  23. data/configuration/tinkerwin2version.cnf +3 -0
  24. data/ev/browser.rb +109 -109
  25. data/ev/ftools.rb +170 -170
  26. data/ev/net.rb +750 -750
  27. data/ev/ruby.rb +819 -819
  28. data/ev/rwd.rb +1848 -1848
  29. data/ev/sgml.rb +236 -236
  30. data/ev/thread.rb +63 -63
  31. data/ev/tree.rb +343 -343
  32. data/ev/xml.rb +4 -4
  33. data/gui/00coreguibegin/applicationguitop.rwd +4 -0
  34. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/1openmoviedata.rwd +0 -0
  35. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/2openmoviephoto.rwd +0 -0
  36. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/3listmoviegfiles.rwd +0 -0
  37. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/6editrecord.rwd +0 -0
  38. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/movieutilities.rwd +0 -0
  39. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/viewconfiguration.rwd +0 -0
  40. data/gui/{ll1selectiontabbegin → frontwindowselectionbegin/selectiontabbegin}/selectiontabbegin.rwd +16 -16
  41. data/gui/{ll5rwdtinkerwin2selectiontab → frontwindowselections/superant.com.rwdtinkerwin2selectiontab}/rwdwin2selectiontab.rwd +12 -12
  42. data/gui/{lz1selectiontabend/endselectiontab.rwd → frontwindowselectionzend/viewselectionzend/viewselectionend.rwd} +3 -3
  43. data/gui/{tt0documentsbegin → frontwindowtdocumentbegin/superant.com.documentsbegin}/tt0documentbegin.rwd +6 -6
  44. data/gui/{uu5rwddocuments → frontwindowtdocuments/superant.com.documents}/uu5documents.rwd +15 -15
  45. data/gui/{uv7rwdmovies → frontwindowtdocuments/superant.com.rwdmovies}/uv7docmovies.rwd +0 -0
  46. data/gui/{uu6rwdtinkerwin2documents → frontwindowtdocuments/superant.com.tinkerwin2documents}/uu5documents.rwd +6 -6
  47. data/gui/{ww0documentsend → frontwindowtdocumentzend/superant.com.documentsend}/ww0documentend.rwd +7 -7
  48. data/gui/{wz6finaltabs → frontwindowz1end/frontwindowend}/xx0rwdfirsttab.rwd +6 -6
  49. data/gui/{ya1helpaboutbegin → helpaboutbegin/superant.com.helpaboutbegin}/ya0helpscreenstart.rwd +3 -3
  50. data/gui/{yl2rwdmovieshelpabout → helpaboutinstalled/superant.com.rwdmovieshelpabout}/1movies.rwd +0 -0
  51. data/gui/{yl2rwdmovieshelpabout → helpaboutinstalled/superant.com.rwdmovieshelpabout}/2movies.rwd +0 -0
  52. data/gui/{yl2rwdmovieshelpabout → helpaboutinstalled/superant.com.rwdmovieshelpabout}/5version.rwd +0 -0
  53. data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/1appname.rwd +4 -4
  54. data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/3copyright.rwd +3 -3
  55. data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/5version.rwd +10 -10
  56. data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/1appname.rwd +4 -4
  57. data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/3copyright.rwd +3 -3
  58. data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +10 -0
  59. data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +3 -0
  60. data/gui/{xx8rwdmoviespicture → tinkerbackwindows/superant.com.rwdmoviespicture}/xx8moviephotoview.rwd +0 -0
  61. data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinercallablewindow}/1appname.rwd +17 -17
  62. data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinercallablewindow}/9end.rwd +4 -4
  63. data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/1appname.rwd +5 -5
  64. data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/3arwddiagnostics.rwd +33 -33
  65. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40editconfiguration.rwd +36 -0
  66. data/gui/{xb1rwdtinkerbackwindow/4arwdlistapplets.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd} +44 -44
  67. data/gui/{xb1rwdtinkerbackwindow/4arwdlistzips.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd} +35 -35
  68. data/gui/{xb1rwdtinkerbackwindow/2tab1.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd} +11 -11
  69. data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/9backend.rwd +6 -6
  70. data/gui/{xa1versionwindow → tinkerbackwindows/superant.com.versionwindow}/1appname.rwd +19 -19
  71. data/gui/{za1applicationend → zzcoreguiend/tinkerapplicationguiend}/yy9rwdend.rwd +4 -4
  72. data/init.rb +233 -233
  73. data/installed/rwdtinkerwin2-0.5.inf +8 -8
  74. data/installed/rwdviewlogo-0.4.inf +4 -0
  75. data/lang/alanguagehashbegin.rb +4 -4
  76. data/lang/en/rwdcore/languagefile.rb +15 -15
  77. data/lang/es/rwdcore/languagefile-es.rb +14 -14
  78. data/lang/jp/rwdcore/languagefile.rb +9 -0
  79. data/lang/languagehash.rb +4 -4
  80. data/lang/nl/rwdcore/languagefile.rb +19 -0
  81. data/lang/templangfile.rb +15 -21
  82. data/lang/vlanguagehashend.rb +6 -6
  83. data/lang/wlocallangstart.rb +5 -5
  84. data/lang/xlocallangfile.rb +16 -10
  85. data/lang/zlocallangend.rb +2 -2
  86. data/lib/temp.rb +1 -1
  87. data/rwd_files/HowTo_Movies.txt +2 -0
  88. data/rwd_files/HowTo_Tinker.txt +318 -276
  89. data/rwd_files/HowTo_TinkerWin2.txt +202 -202
  90. data/rwd_files/Readme.txt +57 -57
  91. data/rwd_files/moviestmp.jpg +0 -0
  92. data/rwd_files/rdoc-style.css +174 -174
  93. data/rwd_files/rwdapplications.html +54 -54
  94. data/rwd_files/tinker.png +0 -0
  95. data/tests/rwdtinkertestEN.rb +163 -0
  96. data/tests/test.result +32 -0
  97. data/tests/totranslate.lang +93 -93
  98. data/zips/rwdahelloworld-0.5.zip +0 -0
  99. metadata +96 -75
  100. data/code/gh9calendar/gh9calendar.rb +0 -16
  101. data/configuration/aa0rwdframework.cnf +0 -14
  102. data/configuration/ab1tinkerwin2.cnf +0 -4
  103. data/gui/aa2core/aa0rwdtop.rwd +0 -4
  104. data/gui/yg5rwdhelpabout/5version.rwd +0 -10
  105. data/gui/yy5helpaboutend/helpscreenend.rwd +0 -3
  106. data/installed/rubyslippers-0.94.inf +0 -9
  107. data/installed/rwdcalendar-0.5.inf +0 -8
  108. data/lang/en/rwdcalendar/calendar-nl.rb +0 -6
  109. data/lang/es/rwdcalendar/calendar-nl.rb +0 -6
  110. data/lang/nl/rwdcalendar/calendar-nl.rb +0 -6
  111. data/lang/nl/rwdcore/languagefile-nl.rb +0 -4
  112. data/zips/rwdacalendar-0.5.zip +0 -0
  113. data/zips/rwdhelloworld-0.3.zip +0 -0
  114. data/zips/rwdwshell-0.91.zip +0 -0
  115. data/zips/wrubyslippers-0.93.zip +0 -0
@@ -1,175 +1,175 @@
1
-
2
- body {
3
- margin: 0;
4
- padding: 0;
5
- background: white;
6
- }
7
-
8
- h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
9
- h1 { font-size: 120%; }
10
- h2,h3,h4 { margin-top: 1em; }
11
-
12
- a { background: #eef; color: #039; text-decoration: none; }
13
- a:hover { background: #039; color: #eef; }
14
-
15
- /* Override the base stylesheet's Anchor inside a table cell */
16
- td > a {
17
- background: transparent;
18
- color: #039;
19
- text-decoration: none;
20
- }
21
-
22
- /* === Structural elements =================================== */
23
-
24
- div#index {
25
- margin: 0;
26
- padding: 0;
27
- font-size: 0.9em;
28
- }
29
-
30
- div#index a {
31
- margin-left: 0.7em;
32
- }
33
-
34
- div#classHeader {
35
- width: auto;
36
- background: #039;
37
- color: white;
38
- padding: 0.5em 1.5em 0.5em 1.5em;
39
- margin: 0;
40
- border-bottom: 3px solid #006;
41
- }
42
-
43
- div#classHeader a {
44
- background: inherit;
45
- color: white;
46
- }
47
-
48
- div#classHeader td {
49
- background: inherit;
50
- color: white;
51
- }
52
-
53
- div#fileHeader {
54
- width: auto;
55
- background: #039;
56
- color: white;
57
- padding: 0.5em 1.5em 0.5em 1.5em;
58
- margin: 0;
59
- border-bottom: 3px solid #006;
60
- }
61
-
62
- div#fileHeader a {
63
- background: inherit;
64
- color: white;
65
- }
66
-
67
- div#fileHeader td {
68
- background: inherit;
69
- color: white;
70
- }
71
-
72
- div#bodyContent {
73
- padding: 0 1.5em 0 1.5em;
74
- }
75
-
76
- div#description {
77
- padding: 0.5em 1.5em;
78
- background: #efefef;
79
- border: 1px dotted #999;
80
- }
81
-
82
- div#description h1,h2,h3,h4,h5,h6 {
83
- color: black;
84
- background: transparent;
85
- }
86
-
87
- div#validator-badges {
88
- text-align: center;
89
- }
90
- div#validator-badges img { border: 0; }
91
-
92
- div#copyright {
93
- color: #333;
94
- background: #efefef;
95
- font: 0.75em sans-serif;
96
- margin-top: 5em;
97
- margin-bottom: 0;
98
- padding: 0.5em 2em;
99
- }
100
-
101
-
102
- /* === Classes =================================== */
103
-
104
- table.header-table {
105
- color: white;
106
- font-size: small;
107
- }
108
-
109
- .type-note {
110
- font-size: small;
111
- color: #DEDEDE;
112
- }
113
-
114
- .section-bar {
115
- background: #eee;
116
- color: #333;
117
- padding: 3px;
118
- border: 1px solid #999;
119
- }
120
-
121
- .top-aligned-row { vertical-align: vertical-align: top }
122
-
123
- /* --- Context section classes ----------------------- */
124
-
125
- .context-row { }
126
- .context-item-name { font-family: monospace; font-weight: bold; color: black; }
127
- .context-item-value { font-size: x-small; color: #448; }
128
- .context-item-desc { background: #efefef; }
129
-
130
- /* --- Method classes -------------------------- */
131
- .method-detail {
132
- background: #EFEFEF;
133
- padding: 0;
134
- margin-top: 0.5em;
135
- margin-bottom: 0.5em;
136
- border: 1px dotted #DDD;
137
- }
138
- .method-heading {
139
- color: black;
140
- background: #AAA;
141
- border-bottom: 1px solid #666;
142
- padding: 0.2em 0.5em 0 0.5em;
143
- }
144
- .method-signature { color: black; background: inherit; }
145
- .method-name { font-weight: bold; }
146
- .method-args { font-style: italic; }
147
- .method-description { padding: 0 0.5em 0 0.5em; }
148
-
149
- /* --- Source code sections -------------------- */
150
-
151
- a.source-toggle { font-size: 90%; }
152
- div.method-source-code {
153
- background: #262626;
154
- color: #ffdead;
155
- margin: 1em;
156
- padding: 0.5em;
157
- border: 1px dashed #999;
158
- overflow: hidden;
159
- }
160
-
161
- div.method-source-code pre { color: #ffdead; overflow: hidden; }
162
-
163
- /* --- Ruby keyword styles --------------------- */
164
-
165
- .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
166
-
167
- .ruby-constant { color: #7fffd4; background: transparent; }
168
- .ruby-keyword { color: #00ffff; background: transparent; }
169
- .ruby-ivar { color: #eedd82; background: transparent; }
170
- .ruby-operator { color: #00ffee; background: transparent; }
171
- .ruby-identifier { color: #ffdead; background: transparent; }
172
- .ruby-node { color: #ffa07a; background: transparent; }
173
- .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
174
- .ruby-regexp { color: #ffa07a; background: transparent; }
1
+
2
+ body {
3
+ margin: 0;
4
+ padding: 0;
5
+ background: white;
6
+ }
7
+
8
+ h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
9
+ h1 { font-size: 120%; }
10
+ h2,h3,h4 { margin-top: 1em; }
11
+
12
+ a { background: #eef; color: #039; text-decoration: none; }
13
+ a:hover { background: #039; color: #eef; }
14
+
15
+ /* Override the base stylesheet's Anchor inside a table cell */
16
+ td > a {
17
+ background: transparent;
18
+ color: #039;
19
+ text-decoration: none;
20
+ }
21
+
22
+ /* === Structural elements =================================== */
23
+
24
+ div#index {
25
+ margin: 0;
26
+ padding: 0;
27
+ font-size: 0.9em;
28
+ }
29
+
30
+ div#index a {
31
+ margin-left: 0.7em;
32
+ }
33
+
34
+ div#classHeader {
35
+ width: auto;
36
+ background: #039;
37
+ color: white;
38
+ padding: 0.5em 1.5em 0.5em 1.5em;
39
+ margin: 0;
40
+ border-bottom: 3px solid #006;
41
+ }
42
+
43
+ div#classHeader a {
44
+ background: inherit;
45
+ color: white;
46
+ }
47
+
48
+ div#classHeader td {
49
+ background: inherit;
50
+ color: white;
51
+ }
52
+
53
+ div#fileHeader {
54
+ width: auto;
55
+ background: #039;
56
+ color: white;
57
+ padding: 0.5em 1.5em 0.5em 1.5em;
58
+ margin: 0;
59
+ border-bottom: 3px solid #006;
60
+ }
61
+
62
+ div#fileHeader a {
63
+ background: inherit;
64
+ color: white;
65
+ }
66
+
67
+ div#fileHeader td {
68
+ background: inherit;
69
+ color: white;
70
+ }
71
+
72
+ div#bodyContent {
73
+ padding: 0 1.5em 0 1.5em;
74
+ }
75
+
76
+ div#description {
77
+ padding: 0.5em 1.5em;
78
+ background: #efefef;
79
+ border: 1px dotted #999;
80
+ }
81
+
82
+ div#description h1,h2,h3,h4,h5,h6 {
83
+ color: black;
84
+ background: transparent;
85
+ }
86
+
87
+ div#validator-badges {
88
+ text-align: center;
89
+ }
90
+ div#validator-badges img { border: 0; }
91
+
92
+ div#copyright {
93
+ color: #333;
94
+ background: #efefef;
95
+ font: 0.75em sans-serif;
96
+ margin-top: 5em;
97
+ margin-bottom: 0;
98
+ padding: 0.5em 2em;
99
+ }
100
+
101
+
102
+ /* === Classes =================================== */
103
+
104
+ table.header-table {
105
+ color: white;
106
+ font-size: small;
107
+ }
108
+
109
+ .type-note {
110
+ font-size: small;
111
+ color: #DEDEDE;
112
+ }
113
+
114
+ .section-bar {
115
+ background: #eee;
116
+ color: #333;
117
+ padding: 3px;
118
+ border: 1px solid #999;
119
+ }
120
+
121
+ .top-aligned-row { vertical-align: vertical-align: top }
122
+
123
+ /* --- Context section classes ----------------------- */
124
+
125
+ .context-row { }
126
+ .context-item-name { font-family: monospace; font-weight: bold; color: black; }
127
+ .context-item-value { font-size: x-small; color: #448; }
128
+ .context-item-desc { background: #efefef; }
129
+
130
+ /* --- Method classes -------------------------- */
131
+ .method-detail {
132
+ background: #EFEFEF;
133
+ padding: 0;
134
+ margin-top: 0.5em;
135
+ margin-bottom: 0.5em;
136
+ border: 1px dotted #DDD;
137
+ }
138
+ .method-heading {
139
+ color: black;
140
+ background: #AAA;
141
+ border-bottom: 1px solid #666;
142
+ padding: 0.2em 0.5em 0 0.5em;
143
+ }
144
+ .method-signature { color: black; background: inherit; }
145
+ .method-name { font-weight: bold; }
146
+ .method-args { font-style: italic; }
147
+ .method-description { padding: 0 0.5em 0 0.5em; }
148
+
149
+ /* --- Source code sections -------------------- */
150
+
151
+ a.source-toggle { font-size: 90%; }
152
+ div.method-source-code {
153
+ background: #262626;
154
+ color: #ffdead;
155
+ margin: 1em;
156
+ padding: 0.5em;
157
+ border: 1px dashed #999;
158
+ overflow: hidden;
159
+ }
160
+
161
+ div.method-source-code pre { color: #ffdead; overflow: hidden; }
162
+
163
+ /* --- Ruby keyword styles --------------------- */
164
+
165
+ .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
166
+
167
+ .ruby-constant { color: #7fffd4; background: transparent; }
168
+ .ruby-keyword { color: #00ffff; background: transparent; }
169
+ .ruby-ivar { color: #eedd82; background: transparent; }
170
+ .ruby-operator { color: #00ffee; background: transparent; }
171
+ .ruby-identifier { color: #ffdead; background: transparent; }
172
+ .ruby-node { color: #ffa07a; background: transparent; }
173
+ .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
174
+ .ruby-regexp { color: #ffa07a; background: transparent; }
175
175
  .ruby-value { color: #7fffd4; background: transparent; }
@@ -1,54 +1,54 @@
1
- <html>
2
- <head>
3
- <title>
4
- rwdapplications information
5
- </title>
6
- </head>
7
- <body>
8
- <h1>
9
- rwdapplications information (rwdshell)
10
- </h1>
11
- <br>
12
- <h2>
13
-
14
- Some additional programs in this series
15
- </h2>
16
- <h3>
17
- <br><blockquote>
18
- rwdaddresses a little address book
19
- <br><br>
20
- rwdmovies a database for tracking your dvds and vhs movie collection
21
- <br><br>
22
-
23
- you can find these on rubyforge.org
24
-
25
- </blockquote>
26
- <br>
27
-
28
- <br><blockquote>
29
- Also look for a program called redpimp on rubyforge.org
30
-
31
- <br><br>
32
- It is planned to be a pim using RubyWebDialogs
33
- <br><br>
34
-
35
- you can find this at http://redpimp.rubyforge.org
36
-
37
- </blockquote>
38
- <br>
39
-
40
-
41
- <br><br>
42
- For more information see:<br>
43
- <a href=http://rwdapplications.rubyforge.org/wiki/wiki.pl>http://rwdapplications.rubyforge.org/wiki/wiki.pl</a>
44
- <br>
45
- <br>
46
- For more information about RubyWebDialogs see:<br>
47
- <a href=http://www.erikveen.dds.nl/rubywebdialogs/index.html>http://www.erikveen.dds.nl/rubywebdialogs/index.html</a>
48
- <br><br>
49
- Thanks, Steven Gibson
50
-
51
-
52
-
53
- </body>
54
- </html>
1
+ <html>
2
+ <head>
3
+ <title>
4
+ rwdapplications information
5
+ </title>
6
+ </head>
7
+ <body>
8
+ <h1>
9
+ rwdapplications information (rwdshell)
10
+ </h1>
11
+ <br>
12
+ <h2>
13
+
14
+ Some additional programs in this series
15
+ </h2>
16
+ <h3>
17
+ <br><blockquote>
18
+ rwdaddresses a little address book
19
+ <br><br>
20
+ rwdmovies a database for tracking your dvds and vhs movie collection
21
+ <br><br>
22
+
23
+ you can find these on rubyforge.org
24
+
25
+ </blockquote>
26
+ <br>
27
+
28
+ <br><blockquote>
29
+ Also look for a program called redpimp on rubyforge.org
30
+
31
+ <br><br>
32
+ It is planned to be a pim using RubyWebDialogs
33
+ <br><br>
34
+
35
+ you can find this at http://redpimp.rubyforge.org
36
+
37
+ </blockquote>
38
+ <br>
39
+
40
+
41
+ <br><br>
42
+ For more information see:<br>
43
+ <a href=http://rwdapplications.rubyforge.org/wiki/wiki.pl>http://rwdapplications.rubyforge.org/wiki/wiki.pl</a>
44
+ <br>
45
+ <br>
46
+ For more information about RubyWebDialogs see:<br>
47
+ <a href=http://www.erikveen.dds.nl/rubywebdialogs/index.html>http://www.erikveen.dds.nl/rubywebdialogs/index.html</a>
48
+ <br><br>
49
+ Thanks, Steven Gibson
50
+
51
+
52
+
53
+ </body>
54
+ </html>
Binary file
@@ -0,0 +1,163 @@
1
+ #-------------------------------------------------------------------------------------------------------------#
2
+ # test with the WATIR controller
3
+ #
4
+ # Simple test based on Google/watir demo
5
+ #
6
+ #------------------------------------------------------------------------------------------------------------ #
7
+
8
+ #includes
9
+ require '../watir' # the controller
10
+
11
+ #test::unit includes
12
+ require 'test/unit'
13
+ require 'test/unit/ui/console/testrunner'
14
+ require '../unittests/testUnitAddons'
15
+
16
+ #code to set your current path in Windows
17
+ $myDir = File.dirname(__FILE__)
18
+ $LOAD_PATH << $myDir
19
+
20
+ class TC_rwdtinker_suite < Test::Unit::TestCase
21
+
22
+
23
+
24
+ def test_a_Open1
25
+ #--------------------------------------------------------
26
+ # test case that shows basic WATIR functionality:
27
+ # * enter text in a field
28
+ # * click a button
29
+ #
30
+
31
+ #variables
32
+ testSite = 'http://localhost:7705'
33
+
34
+ #open the IE browser
35
+ $ie = IE.new
36
+
37
+ puts '## Beginning of test: rwdtinker'
38
+ puts ' '
39
+
40
+
41
+ $ie.goto(testSite)
42
+ puts ' Action: entered ' + testSite + 'in the address bar.'
43
+ sleep 1
44
+
45
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_help";document.bodyform.submit();').click
46
+
47
+ $ie.button(:caption, 'Click for Version').click
48
+
49
+ $ie.button(:caption, 'Cancel').click
50
+
51
+
52
+
53
+ sleep 1
54
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_selectiontab";document.bodyform.submit();').click
55
+
56
+
57
+
58
+ $ie.button(:caption, 'RwdTinker Help Window').click
59
+ puts ' Action: clicked the Help Window link'
60
+
61
+ end
62
+
63
+ def test_b_Buttons1
64
+
65
+
66
+ sleep 1
67
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_nexttab";document.bodyform.submit();').click
68
+ puts ' Action: clicked the nexttab link'
69
+
70
+
71
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_main";document.bodyform.submit();').click
72
+ puts ' Action: clicked the main tab link'
73
+
74
+
75
+ $ie.button(:caption, "Cancel").click
76
+ puts ' Action: clicked the cancel button'
77
+
78
+
79
+
80
+ end
81
+
82
+ def test_c_tabs
83
+
84
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_one";document.bodyform.submit();').click
85
+ puts ' Action: clicked tab one'
86
+
87
+
88
+ end
89
+
90
+ def test_d_tabs
91
+
92
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_selectiontab";document.bodyform.submit();').click
93
+ puts ' Action: clicked the selectiontab'
94
+
95
+
96
+ $ie.button(:caption, 'RwdTinker Back Window').click
97
+ puts ' Action: clicked the Help Window link'
98
+
99
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_backone";document.bodyform.submit();').click
100
+ puts ' Action: clicked the backone tab'
101
+
102
+
103
+ assert($ie.pageContainsText("previous window") )
104
+
105
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_diagnostictab";document.bodyform.submit();').click
106
+ puts ' Action: clicked the diagnostictab top link'
107
+
108
+
109
+ $ie.button(:caption, "View Ruby Version").click
110
+ puts ' Action: clicked Ruby Version button.'
111
+
112
+ assert($ie.pageContainsText("Version") )
113
+
114
+ $ie.button(:caption, "view platform").click
115
+ puts ' Action: clicked platform button.'
116
+
117
+ assert($ie.pageContainsText("Platform is") )
118
+
119
+ $ie.button(:caption, "View rwdtinker Version").click
120
+ puts ' Action: clicked rwdtinker version button.'
121
+
122
+ assert($ie.pageContainsText("rwdtinker version") )
123
+
124
+ end # end of test_d
125
+
126
+ def test_e_tabs
127
+
128
+
129
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_filelister";document.bodyform.submit();').click
130
+
131
+
132
+ assert($ie.pageContainsText("View the list") )
133
+
134
+ $ie.button(:caption, "List Files").click
135
+ puts ' Action: clicked the list files button.'
136
+
137
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="fillappletname/rwdviewlogo-0.4.inf";document.bodyform.submit();').click
138
+
139
+
140
+ $ie.button(:caption, "View Install Text").click
141
+ puts ' Action: clicked the View Install Text button.'
142
+
143
+ assert($ie.pageContainsText("rwdviewlogo") )
144
+
145
+
146
+ end
147
+
148
+ def test_f_tabs
149
+
150
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_zipslister";document.bodyform.submit();').click
151
+
152
+ assert($ie.pageContainsText("File Name") )
153
+
154
+ assert($ie.pageContainsText("view the list of zip files") )
155
+
156
+ $ie.button(:caption, "List applets available for installing").click
157
+ puts ' Action: clicked the List applets available for installing button.'
158
+
159
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="fillziptoinstallname/rwdhelloworld-0.3.zip";document.bodyform.submit();').click
160
+
161
+ end
162
+
163
+ end #end of class TC_google_suite
data/tests/test.result ADDED
@@ -0,0 +1,32 @@
1
+ Loaded suite C:/ruby/sample/watir/examples/rwdtinkertestEN
2
+ Started
3
+ ## Beginning of test: rwdtinker
4
+
5
+ Action: entered http://localhost:7705in the address bar.
6
+ Action: clicked the Help Window link
7
+ Action: clicked the nexttab link
8
+ Action: clicked the main tab link
9
+ Action: clicked the cancel button
10
+ Action: clicked tab one
11
+ Action: clicked the selectiontab
12
+ Action: clicked the Help Window link
13
+ Action: clicked the backone tab
14
+ pageContainsText: Looking for: previous window (string) - found it ok
15
+ Action: clicked the diagnostictab top link
16
+ Action: clicked Ruby Version button.
17
+ pageContainsText: Looking for: Version (string) - found it ok
18
+ Action: clicked platform button.
19
+ pageContainsText: Looking for: Platform is (string) - found it ok
20
+ Action: clicked rwdtinker version button.
21
+ pageContainsText: Looking for: rwdtinker version (string) - found it ok
22
+ pageContainsText: Looking for: View the list (string) - found it ok
23
+ Action: clicked the list files button.
24
+ Action: clicked the View Install Text button.
25
+ pageContainsText: Looking for: rwdviewlogo (string) - found it ok
26
+ pageContainsText: Looking for: File Name (string) - found it ok
27
+ pageContainsText: Looking for: view the list of zip files (string) - found it ok
28
+ Action: clicked the List applets available for installing button.
29
+
30
+ Finished in 32.716 seconds.
31
+
32
+ 6 tests, 8 assertions, 0 failures, 0 errors