Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/webappapis/scripting/event-loops/resources/common.js

Issue 1344233004: update-w3c-deps import using blink 41e709df01f60521d3c9786d319cdc1690633151: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated -expected Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Helper for tests that just want to verify the ordering of a series of events.
2 // Usage:
3 // log_test(function(t, log) {
4 // log('first');
5 // log('second');
6 // }, ['first', 'second'], 'Ordinal numbers are ordinal');
7
8 function log_test(func, expected, description) {
9 async_test(function(t) {
10 var actual = [];
11 function log(entry) {
12 actual.push(entry);
13 if (expected.length <= actual.length) {
14 assert_array_equals(actual, expected);
15 t.done();
16 }
17 }
18 func(t, t.step_func(log));
19 }, description);
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698