Skip to content

Commit 3150f41

Browse files
Add emojis to a todomvc app (#417)
1 parent 5a19851 commit 3150f41

File tree

2 files changed

+137
-0
lines changed

2 files changed

+137
-0
lines changed

resources/tests.mjs

+34
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,40 @@ Suites.push({
8787
],
8888
});
8989

90+
Suites.push({
91+
name: "TodoMVC-Emoji",
92+
url: "resources/todomvc/vanilla-examples/javascript-web-components/dist/index.html",
93+
tags: ["todomvc", "experimental"],
94+
disabled: true,
95+
async prepare(page) {
96+
await page.waitForElement("todo-app");
97+
},
98+
tests: [
99+
new BenchmarkTestStep(`Adding${numberOfItemsToAdd}Items`, (page) => {
100+
const input = page.querySelector(".new-todo-input", ["todo-app", "todo-topbar"]);
101+
for (let i = 0; i < numberOfItemsToAdd; i++) {
102+
input.setValue(getTodoText("emoji", i));
103+
input.dispatchEvent("input");
104+
input.enter("keyup");
105+
}
106+
}),
107+
new BenchmarkTestStep("CompletingAllItems", (page) => {
108+
const items = page.querySelectorAll("todo-item", ["todo-app", "todo-list"]);
109+
for (let i = 0; i < numberOfItemsToAdd; i++) {
110+
const item = items[i].querySelectorInShadowRoot(".toggle-todo-input");
111+
item.click();
112+
}
113+
}),
114+
new BenchmarkTestStep("DeletingAllItems", (page) => {
115+
const items = page.querySelectorAll("todo-item", ["todo-app", "todo-list"]);
116+
for (let i = numberOfItemsToAdd - 1; i >= 0; i--) {
117+
const item = items[i].querySelectorInShadowRoot(".remove-todo-button");
118+
item.click();
119+
}
120+
}),
121+
],
122+
});
123+
90124
Suites.push({
91125
name: "TodoMVC-JavaScript-ES5",
92126
url: "resources/todomvc/vanilla-examples/javascript-es5/dist/index.html",

resources/translations.mjs

+103
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,108 @@ export const todos = {
611611
"Главная гранитная пицца",
612612
"Великолепная пластиковая клавиатура",
613613
],
614+
emoji: [
615+
"Electronic Granite Hat 👆🏻",
616+
"Bespoke Soft 🍷 Table",
617+
"Ergonomic Fresh Bike 😚😚",
618+
"Luxurious 🍉 Wooden Cheese 🍮",
619+
"Gorgeous Fresh Pizza ⛔",
620+
"Rustic 💪🏽 Rubber Shirt",
621+
"Modern Rubber 🍀 Soap",
622+
"👍 Small Bronze Ball 👍",
623+
"Awesome Bronze Shoes 😎",
624+
"Bespoke 👈🏽 Steel Chair",
625+
"Practical Plastic 💋 💋 Soap",
626+
"🙌🏻 Incredible Granite Bacon",
627+
"🎃🎃🎃🎃🎃🎃🎃🎃🎃🎃🎃🎃🎃🎃",
628+
"Electronic Wooden Sausages 🌷",
629+
"Tasty 🍺 Wooden Gloves",
630+
"🏖️ Luxurious Metal Cheese",
631+
"Awesome Rubber 😉 Gloves",
632+
"Sleek Soft Car 💁🏻‍♂️",
633+
"Licensed 👏👏👏 Fresh Salad",
634+
"Ergonomic Frozen Towels 🐇",
635+
"🖐🏻 Modern Rubber Keyboard",
636+
"Tasty Concrete Pizza ✨✨",
637+
"Handmade 😘 Plastic 😘 Chicken 😘",
638+
"🏁 Luxurious Rubber Chicken 🏁",
639+
"Practical Soft Fish 🤍",
640+
"Ergonomic Bronze Shirt 😍",
641+
"😸😸 Handcrafted 🐻 Plastic Bacon",
642+
"Unbranded 🐭 Plastic Pants",
643+
"🤘 Modern 🤘 Wooden 🤘 Sausages",
644+
"Handmade Steel Shoes 👍",
645+
"Rustic 🧁🧁 Steel Bike",
646+
"Gorgeous Frozen Salad 👩‍💻",
647+
"Handmade Bronze Chicken 😮😸",
648+
"Sleek 🍐 Granite Bike",
649+
" ❌ ❌ Generic Concrete Sausages",
650+
"Incredible 🍉 Plastic Tuna",
651+
"Bespoke Fresh Cheese 😘",
652+
"💡💡💡💡💡💡💡💡💡💡💡💡💡💡💡💡💡💡",
653+
"Licensed 🍐 Wooden 🍅 Car ",
654+
"Recycled Fresh Fish 🤡",
655+
"📞 Incredible Fresh Shoes",
656+
"Practical 🐻🐻 Soft Chips",
657+
"Small 💝 Soft Chicken",
658+
" 💝 Intelligent Fresh Mouse 💝",
659+
"Modern Metal 🧵 Mouse",
660+
"🦈 Tasty Granite Gloves",
661+
"Awesome Rubber Bike 😡😡😡😡",
662+
"🚮 Small Steel Shirt 🚮",
663+
"Refined 🌲 Concrete Computer",
664+
"Sleek Frozen Shirt 👨‍🦰",
665+
"Intelligent Concrete ➗➗➗ Shoes",
666+
"🏅Handmade Rubber Car",
667+
"Sleek 👨🏼‍🌾 Rubber 👨🏼‍🌾 Towels",
668+
"Unbranded Concrete Hat🎇",
669+
"🌀🌀Incredible Plastic Fish",
670+
"Practical Soft Gloves🌶️ 🌶️",
671+
"Organic 🍞 Stone 🔽 Pizza 🥴",
672+
"Generic Wooden Keyboard 💙",
673+
"Recycled 🔴 Wooden Chips",
674+
"Incredible Rubber Chips 🍹",
675+
"🌵 Ergonomic Granite Shirt",
676+
"Tasty Frozen 🦄 Keyboard",
677+
"🍣 Gorgeous Steel 🥯 Soap",
678+
"Luxurious Plastic Chair 🧑‍🦰",
679+
"Elegant Frozen 🧑‍🦰 Bike",
680+
"Recycled 🟠🟠 Steel Chair",
681+
"⭐⭐ Modern ⭐ Bronze ⭐ Sausages",
682+
"Elegant Wooden Cheese🤘",
683+
"Small 🎎 Plastic 🛩️ Sausages",
684+
"*️⃣*️⃣*️⃣*️⃣ Luxurious Frozen Shoes",
685+
"Sleek Plastic Sausages 🚩",
686+
"Handcrafted Fresh 💮 Sausages",
687+
"Incredible 🤢🤢 Soft Chair",
688+
"🇬🇪 Recycled 🇲🇺 Wooden Soap",
689+
"Soft 🦌 Rubber Duck 🐥",
690+
"Licensed Concrete Tuna 👎👎",
691+
"Luxurious Granite 💝 Pants",
692+
"Refined Rubber Keyboard 💝",
693+
"👌🏻👌🏻 Handcrafted Plastic Computer",
694+
"Practical Steel 🐪 Salad",
695+
"Incredible Soft Bacon 🌺",
696+
"Practical Metal 🥊 Fish",
697+
"Elegant 👩🏾‍❤️‍💋‍👨🏽👩🏾‍❤️‍💋‍👨🏽 Rubber Shirt",
698+
"🛺 Handcrafted Rubber Table",
699+
"Gorgeous 🦙 Wooden Table 🦙",
700+
"🍉 Fantastic Steel Sausages",
701+
"Small Soft Keyboard👟",
702+
"Generic 🦙🦙 Steel Ball",
703+
"Electronic Frozen Hat ✌🏾✌🏾✌🏾✌🏾✌🏾",
704+
"Gorgeous 🍏 Fresh Chair",
705+
"Sleek Soft 💧 Sausages",
706+
"Gorgeous Wooden Towels 🍿",
707+
"Bespoke 🌅 Granite Pizza",
708+
"Generic Metal Salad 🎗️",
709+
"✨ Handmade ✨ Rubber ✨ Cheese ✨",
710+
"Fantastic 🐥 🌺 🤷🏾 Steel Chair",
711+
"Handcrafted Frozen Computer 🛡️ 🧸 🐓",
712+
"🐹 Rustic Rubber Mouse",
713+
"💠 Sleek Granite Pizza 💠",
714+
"Gorgeous 🧝🏻‍♂️ Plastic Keyboard",
715+
],
614716
};
615717

616718
export const defaultTodoText = {
@@ -620,4 +722,5 @@ export const defaultTodoText = {
620722
es: "Algo que hacer",
621723
de: "Etwas zu tun",
622724
ru: "Кое-что сделать",
725+
emoji: "Something to do 😊",
623726
};

0 commit comments

Comments
 (0)