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

Unified Diff: sky/tests/framework/observe.sky

Issue 850383002: Add two way data binding. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Make it async. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/sky-element/sky-element.sky ('k') | sky/tests/framework/observe-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/framework/observe.sky
diff --git a/sky/tests/framework/observe.sky b/sky/tests/framework/observe.sky
index 2fa89259ba64fabfcf745328c1e8807f63f04aea..a2bc3955b7484ce14bb738a532aede37f37dd350 100644
--- a/sky/tests/framework/observe.sky
+++ b/sky/tests/framework/observe.sky
@@ -334,11 +334,8 @@ describe('ObserverTransform', function() {
function valueFn(value) { return value * 2; }
- function setValueFn(value) { return value / 2; }
-
observer = new ObserverTransform(new PathObserver(obj, 'foo'),
- valueFn,
- setValueFn);
+ valueFn);
observer.open(callback);
obj.foo = 2;
@@ -347,11 +344,10 @@ describe('ObserverTransform', function() {
assertNoChanges();
observer.setValue(2);
- assert.strictEqual(obj.foo, 1);
- assertPathChanges(2, 4);
+ assert.strictEqual(obj.foo, 2);
obj.foo = 10;
- assertPathChanges(20, 2);
+ assertPathChanges(20, 4);
observer.close();
});
« no previous file with comments | « sky/framework/sky-element/sky-element.sky ('k') | sky/tests/framework/observe-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698