Commit graph

11 commits

Author SHA1 Message Date
Rachel Fenichel
97d36e7617 Add a comment with some context on this test. 2020-05-17 20:06:13 -04:00
Rachel Fenichel
a6cbadc23f Make event filtering stricter for move events
Ported from blockly#1892
2020-05-17 20:06:13 -04:00
Karishma Chadha
54ab2ef1a9 Update varcreate json tests to include cloud variable info. 2018-11-14 14:55:34 -05:00
Karishma Chadha
d17f0e07b1 Update tests 2018-10-03 22:19:40 -04:00
Karishma Chadha
83af7c0c18 Update VarCreate/VarDelete JSON tests. 2018-07-04 00:13:28 -04:00
Rachel Fenichel
b20f6b6f49 Move utility into test_utilities.js 2018-06-07 17:16:53 -07:00
Rachel Fenichel
a7a5f41a7a Split events.js into multiple files and update tests 2018-05-09 15:34:36 -07:00
Rachel Fenichel
855ec2665a Pulling in the latest changes from google/blockly/variables_by_id branch,
starting with commit 6218750 (December 19, 2017) through commit 80b397f (January 10, 2018).
2018-01-18 15:03:46 -05:00
Paul Kaplan
8263afcba5 Revert "Implement Blockly.Events.filter in linear time ()"
This reverts commit 910284856e.
2017-10-20 15:06:48 -04:00
Evan W. Patton
910284856e Implement Blockly.Events.filter in linear time ()
* Implement Blockly.Events.filter in linear time

For large App Inventor projects (order 1k+ blocks, 100+ top-level
blocks), the O(n^2) behavior of Blockly.Event.filter was causing
performance issues when rearranging blocks or pasting from the
backpack. This commit provides a linear merge implementation using a
key that uniquely identifies a block so that multiple events targeting
the same block are merged. This change benefits from O(1) amortized
lookup using an object as a key-value store.

* Add event filter unit tests and fix logic bugs

* Update Blockly.Events.filter unit tests
2017-10-19 12:03:51 -04:00
Paul Kaplan
fce962c0fc Merge 06-22 2017-06-22 11:30:37 -04:00