Title: [221205] trunk/PerformanceTests
Revision
221205
Author
[email protected]
Date
2017-08-25 14:21:35 -0700 (Fri, 25 Aug 2017)

Log Message

Speedometer 2.0: Duplicate the current EmberJS test as EmberJS-Debug test
https://bugs.webkit.org/show_bug.cgi?id=175956

Reviewed by Saam Barati.

Made the copy of Ember.js directory at r216946 as emberjs-debug, and added a new test suite "EmberJS-Debug-TodoMVC". 

* Speedometer/resources/tests.js:
(Suites.push.prepare):
* Speedometer/resources/todomvc/architecture-examples/emberjs-debug: Copied from emberjs@r216946.

Modified Paths

Added Paths

  • trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs-debug/

Diff

Modified: trunk/PerformanceTests/ChangeLog (221204 => 221205)


--- trunk/PerformanceTests/ChangeLog	2017-08-25 21:08:09 UTC (rev 221204)
+++ trunk/PerformanceTests/ChangeLog	2017-08-25 21:21:35 UTC (rev 221205)
@@ -1,3 +1,16 @@
+2017-08-24  Ryosuke Niwa  <[email protected]>
+
+        Speedometer 2.0: Duplicate the current EmberJS test as EmberJS-Debug test
+        https://bugs.webkit.org/show_bug.cgi?id=175956
+
+        Reviewed by Saam Barati.
+
+        Made the copy of Ember.js directory at r216946 as emberjs-debug, and added a new test suite "EmberJS-Debug-TodoMVC". 
+
+        * Speedometer/resources/tests.js:
+        (Suites.push.prepare):
+        * Speedometer/resources/todomvc/architecture-examples/emberjs-debug: Copied from emberjs@r216946.
+
 2017-08-23  Ryosuke Niwa  <[email protected]>
 
         Speedometer: Add missing stylesheet to Angular example

Modified: trunk/PerformanceTests/Speedometer/resources/tests.js (221204 => 221205)


--- trunk/PerformanceTests/Speedometer/resources/tests.js	2017-08-25 21:08:09 UTC (rev 221204)
+++ trunk/PerformanceTests/Speedometer/resources/tests.js	2017-08-25 21:21:35 UTC (rev 221205)
@@ -194,6 +194,35 @@
 });
 
 Suites.push({
+    name: 'EmberJS-Debug-TodoMVC',
+    url: 'todomvc/architecture-examples/emberjs-debug/index.html',
+    prepare: function (runner, contentWindow, contentDocument) {
+        return runner.waitForElement('#new-todo').then(function (element) {
+            element.focus();
+            return element;
+        });
+    },
+    tests: [
+        new BenchmarkTestStep('Adding' + numberOfItemsToAdd + 'Items', function (newTodo, contentWindow, contentDocument) {
+            for (var i = 0; i < numberOfItemsToAdd; i++) {
+                newTodo.value = 'Something to do ' + i;
+                triggerEnter(newTodo, 'keydown');
+            }
+        }),
+        new BenchmarkTestStep('CompletingAllItems', function (params, contentWindow, contentDocument) {
+            var checkboxes = contentDocument.querySelectorAll('.toggle');
+            for (var i = 0; i < checkboxes.length; i++)
+                checkboxes[i].click();
+        }),
+        new BenchmarkTestStep('DeletingItems', function (params, contentWindow, contentDocument) {
+            var deleteButtons = contentDocument.querySelectorAll('.destroy');
+            for (var i = 0; i < deleteButtons.length; i++)
+                deleteButtons[i].click();
+        }),
+    ]
+});
+
+Suites.push({
     name: 'BackboneJS-TodoMVC',
     url: 'todomvc/architecture-examples/backbone/index.html',
     prepare: function (runner, contentWindow, contentDocument) {
Index: trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs-debug
===================================================================
--- trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs	2017-05-16 21:16:51 UTC (rev 216946)
+++ trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs-debug	2017-08-25 21:21:35 UTC (rev 221205)

Property changes: trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs-debug


Added: svn:mergeinfo

+/trunk/PerformanceTests/Speedometer/resources/todomvc/architecture-examples/emberjs:53455 \ No newline at end of property
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to