Skip to content

Commit c49cec2

Browse files
committed
change to mouseup to click
1 parent ce6ec6d commit c49cec2

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed
Binary file not shown.

frameworks/non-keyed/korvin/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ enum AppMessage {
142142

143143
fn app(communicator: Communicator<AppMessage>, App { data, selected }: &App) -> ElementBuilder {
144144
let div = |class: &str| "div".attribute("class", class);
145-
let mouseup_send = move |message| move |_: MouseEvent| communicator.send(message);
146-
let element_mouseup_send =
147-
|element: ElementBuilder, message| element.event(message, "mouseup", mouseup_send(message));
145+
let click_send = move |message| move |_: MouseEvent| communicator.send(message);
146+
let element_click_send =
147+
|element: ElementBuilder, message| element.event(message, "click", click_send(message));
148148

149149
let message_button =
150-
|id, text, message| button(id, text, |button| element_mouseup_send(button, message));
150+
|id, text, message| button(id, text, |button| element_click_send(button, message));
151151
let jumbotron = div("jumbotron")
152152
.child(div("col-md-6").child("h1".text("Korvin")))
153153
.child(div("col-md-6"))
@@ -193,15 +193,15 @@ fn app(communicator: Communicator<AppMessage>, App { data, selected }: &App) ->
193193
}
194194
let td = |class: &str| "td".attribute("class", class);
195195
let row = {
196-
td("col-md-4").child(element_mouseup_send(
196+
td("col-md-4").child(element_click_send(
197197
"a".text(label.as_str()),
198198
AppMessage::SetSelected(*id),
199199
))
200200
};
201201
tr.child(td("col-md-1").text(id.to_string().as_str()))
202202
.child(row)
203203
.child(
204-
td("col-md-1").child(element_mouseup_send(
204+
td("col-md-1").child(element_click_send(
205205
"a".child(
206206
"span"
207207
.attribute("class", "glyphicon glyphicon-remove")

webdriver-ts-results/src/results.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,23 @@ export const results: RawResult[]=[
7373
{"f":"elm-v0.19.1-3-non-keyed","b":"32_startup-bt","v":{"DEFAULT":[13.543999999999993]}},
7474
{"f":"elm-v0.19.1-3-non-keyed","b":"33_startup-mainthreadcost","v":{"DEFAULT":[175.12399999999994]}},
7575
{"f":"elm-v0.19.1-3-non-keyed","b":"34_startup-totalbytes","v":{"DEFAULT":[160.677734375]}},
76-
{"f":"korvin-v0.2.1-non-keyed","b":"01_run1k","v":{"total":[62.634,63.035,63.16,63.164,63.423,63.439,63.523,63.62,63.692,63.904,63.912,64.015,64.015,64.282,66.296],"script":[0.009,0.018,0.015,0.01,0.011,0.009,0.009,0.01,0.009,0.009,0.009,0.009,0.009,0.01,0.009]}},
77-
{"f":"korvin-v0.2.1-non-keyed","b":"02_replace1k","v":{"total":[26.646,26.688,26.734,26.826,26.93,26.981,27.01,27.087,27.113,27.115,27.121,27.125,27.193,27.343,27.732],"script":[0.009,0.009,0.009,0.009,0.008,0.008,0.009,0.009,0.008,0.012,0.009,0.016,0.014,0.009,0.01]}},
78-
{"f":"korvin-v0.2.1-non-keyed","b":"03_update10th1k_x16","v":{"total":[35.769,35.853,35.962,36.088,36.116,36.212,36.543,36.602,36.64,37.178,37.398,37.451,37.471,37.6,37.763],"script":[0.012,0.01,0.007,0.007,0.007,0.008,0.006,0.011,0.008,0.007,0.008,0.013,0.008,0.008,0.01]}},
79-
{"f":"korvin-v0.2.1-non-keyed","b":"04_select1k","v":{"total":[5.948,6.14,6.426,6.561,6.713,6.717,6.762,6.834,6.855,6.895,7.059,7.081,7.118,7.125,7.145,7.258,7.264,7.309,7.323,7.329,7.464,7.704,7.856,7.968,10.251],"script":[0.007,0.006,0.006,0.007,0.007,0.011,0.007,0.015,0.006,0.007,0.334,0.006,0.008,0.005,0.006,0.006,0.774,0.007,0.734,0.01,0.007,0.011,0.007,0.01,0.007]}},
80-
{"f":"korvin-v0.2.1-non-keyed","b":"05_swap1k","v":{"total":[27.212,27.414,28.896,29.197,29.378,29.432,29.464,29.527,30.076,30.107,30.167,30.503,30.794,33.571,34.078],"script":[0.006,0.006,0.006,0.011,0.007,0.006,0.006,0.008,0.014,0.006,0.008,0.01,0.006,0.007,0.007]}},
81-
{"f":"korvin-v0.2.1-non-keyed","b":"06_remove-one-1k","v":{"total":[57.521,58.212,58.433,58.522,58.542,58.918,58.959,59.024,59.068,59.469,59.716,59.948,60.071,60.192,68.167],"script":[0.009,0.008,0.009,0.009,0.008,0.016,0.272,0.009,0.008,0.009,0.008,0.011,0.008,0.008,0.008]}},
82-
{"f":"korvin-v0.2.1-non-keyed","b":"07_create10k","v":{"total":[740.271,741.266,741.763,743.601,743.957,744.659,745.485,746.675,749.045,749.718,753.33,763.884,771.962,774.701,777.537],"script":[0.012,0.011,0.026,0.012,0.012,0.013,0.013,0.013,0.01,0.029,0.011,0.011,0.013,0.012,0.013]}},
83-
{"f":"korvin-v0.2.1-non-keyed","b":"08_create1k-after1k_x2","v":{"total":[69.119,69.316,69.625,70.201,70.314,70.395,70.834,70.848,71.191,71.34,71.814,72.456,72.911,73.079,73.939],"script":[0.009,0.01,0.015,0.009,0.008,0.009,0.009,0.01,0.01,0.01,0.01,0.013,0.011,0.014,0.009]}},
84-
{"f":"korvin-v0.2.1-non-keyed","b":"09_clear1k_x8","v":{"total":[3.133,3.164,3.213,3.332,3.526,3.533,3.539,3.56,3.644,3.645,3.743,3.964,4.079,4.313,4.41],"script":[0.008,0.007,0.007,0.007,0.007,0.007,0.008,0.007,0.007,0.014,0.007,0.009,0.621,0.007,0.007]}},
85-
{"f":"korvin-v0.2.1-non-keyed","b":"21_ready-memory","v":{"DEFAULT":[1.711812973022461]}},
86-
{"f":"korvin-v0.2.1-non-keyed","b":"22_run-memory","v":{"DEFAULT":[7.519064903259277]}},
87-
{"f":"korvin-v0.2.1-non-keyed","b":"23_update5-memory","v":{"DEFAULT":[9.65109634399414]}},
88-
{"f":"korvin-v0.2.1-non-keyed","b":"25_run-clear-memory","v":{"DEFAULT":[5.870084762573242]}},
89-
{"f":"korvin-v0.2.1-non-keyed","b":"26_run-10k-memory","v":{"DEFAULT":[58.89329528808594]}},
90-
{"f":"korvin-v0.2.1-non-keyed","b":"31_startup-ci","v":{"DEFAULT":[1878.895]}},
91-
{"f":"korvin-v0.2.1-non-keyed","b":"32_startup-bt","v":{"DEFAULT":[40.46]}},
92-
{"f":"korvin-v0.2.1-non-keyed","b":"33_startup-mainthreadcost","v":{"DEFAULT":[190.98799999999997]}},
76+
{"f":"korvin-v0.2.1-non-keyed","b":"01_run1k","v":{"total":[98.898,98.99,99.634,99.795,99.894,100.072,100.474,100.547,100.563,100.771,101.006,101.403,101.627,101.785,105.78],"script":[36.495,36.457,36.572,36.205,36.375,36.274,36.544,35.996,36.54,36.447,36.72,36.196,36.939,36.969,39.197]}},
77+
{"f":"korvin-v0.2.1-non-keyed","b":"02_replace1k","v":{"total":[60.167,60.884,60.929,61.133,61.286,61.303,61.352,61.516,61.539,61.594,61.67,61.677,61.801,61.978,62.238],"script":[34.308,34.573,34.28,34.525,34.53,34.505,34.246,34.427,34.285,34.45,34.973,34.526,34.588,34.735,34.75]}},
78+
{"f":"korvin-v0.2.1-non-keyed","b":"03_update10th1k_x16","v":{"total":[120.536,120.54,120.905,121.993,122.145,123.004,123.176,123.178,123.44,123.562,123.881,124.576,124.881,126.014,126.207],"script":[87.016,84.465,85.091,85.621,85.271,85.212,85.54,87.068,86.861,86.917,85.363,88.291,88.292,90.163,89.482]}},
79+
{"f":"korvin-v0.2.1-non-keyed","b":"04_select1k","v":{"total":[87.809,87.985,88.253,88.48,88.491,88.502,88.555,88.562,88.565,88.574,88.574,88.706,88.712,89.034,89.218,89.358,89.436,89.592,89.696,90.336,90.392,90.545,91.059,91.805,92.767],"script":[81.238,80.881,80.661,81.111,81.325,81.318,81.329,80.762,81.94,81.01,81.17,81.003,81.151,81.144,82.112,82.024,81.651,81.959,82.364,82.422,82.636,82.452,84.627,84.454,85.394]}},
80+
{"f":"korvin-v0.2.1-non-keyed","b":"05_swap1k","v":{"total":[109.183,109.491,109.604,111.08,111.381,112.035,112.077,112.326,112.468,112.774,113.506,113.661,115.005,115.427,116.628],"script":[82.563,80.917,82.652,80.542,81.452,80.877,82.358,81.191,82.364,81.411,82.271,81.991,82.043,81.812,85.324]}},
81+
{"f":"korvin-v0.2.1-non-keyed","b":"06_remove-one-1k","v":{"total":[125.682,125.698,126.279,126.756,127.119,127.246,127.46,127.636,128.097,128.233,128.651,129.183,130.045,130.315,131.178],"script":[67.144,67.235,67.709,67.184,67.958,68.132,67.802,68.288,67.766,67.559,68.275,68.598,68.324,69.802,70.986]}},
82+
{"f":"korvin-v0.2.1-non-keyed","b":"07_create10k","v":{"total":[1552.496,1569.014,1572.548,1573.17,1577.429,1583.938,1585.561,1588.191,1590.505,1605.725,1606.64,1612.305,1642.236,1642.318,1647.193],"script":[817.323,836.522,839.151,842.973,841.674,835.198,849.707,850.903,851.074,862.321,870.579,840.311,869.086,891.696,870.56]}},
83+
{"f":"korvin-v0.2.1-non-keyed","b":"08_create1k-after1k_x2","v":{"total":[127.607,127.856,128.423,128.552,128.722,128.847,129.081,129.158,129.506,129.74,130.102,130.339,134.057,136.612,155.117],"script":[57.939,58.157,57.62,57.564,58.306,58.926,59.569,58.446,59.692,58.724,60.773,59.238,61.267,60.945,83.553]}},
84+
{"f":"korvin-v0.2.1-non-keyed","b":"09_clear1k_x8","v":{"total":[39.326,40.181,40.24,40.548,41.305,41.342,41.371,41.626,41.77,41.841,41.899,42.151,42.625,42.906,43.959],"script":[35.424,36.673,36.623,37.153,37.723,37.644,37.734,37.646,37.636,37.968,38.264,38.136,39.194,39.315,40.007]}},
85+
{"f":"korvin-v0.2.1-non-keyed","b":"21_ready-memory","v":{"DEFAULT":[1.7120418548583984]}},
86+
{"f":"korvin-v0.2.1-non-keyed","b":"22_run-memory","v":{"DEFAULT":[7.522467613220215]}},
87+
{"f":"korvin-v0.2.1-non-keyed","b":"23_update5-memory","v":{"DEFAULT":[9.716793060302734]}},
88+
{"f":"korvin-v0.2.1-non-keyed","b":"25_run-clear-memory","v":{"DEFAULT":[5.935934066772461]}},
89+
{"f":"korvin-v0.2.1-non-keyed","b":"26_run-10k-memory","v":{"DEFAULT":[58.33414840698242]}},
90+
{"f":"korvin-v0.2.1-non-keyed","b":"31_startup-ci","v":{"DEFAULT":[1880.2250000000001]}},
91+
{"f":"korvin-v0.2.1-non-keyed","b":"32_startup-bt","v":{"DEFAULT":[43.92800000000001]}},
92+
{"f":"korvin-v0.2.1-non-keyed","b":"33_startup-mainthreadcost","v":{"DEFAULT":[186.00800000000004]}},
9393
{"f":"korvin-v0.2.1-non-keyed","b":"34_startup-totalbytes","v":{"DEFAULT":[391.67578125]}},
9494
{"f":"react-v18.2.0-non-keyed","b":"01_run1k","v":{"total":[85.603,86.445,87.3,87.383,87.539,87.878,88.586,88.722,90.207,90.5,90.9,91.213,91.51,92.951,95.223],"script":[22.116,21.751,23.073,22.772,22.581,23.249,22.58,22.006,23.598,22.626,27.675,22.496,24.185,23.716,27.659]}},
9595
{"f":"react-v18.2.0-non-keyed","b":"02_replace1k","v":{"total":[34.993,36.542,36.62,37.108,37.115,37.437,37.932,38.071,38.429,38.876,40.03,40.192,40.558,40.689,42.619],"script":[8.814,10.034,9.859,10.034,9.884,9.992,10.949,10.62,10.507,12.544,10.941,12.697,10.655,11.84,11.528]}},

webdriver-ts/results.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)