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

Unified Diff: tests/lib/typed_data/float32x4_test.dart

Issue 23134002: Replace shuffle getters with shuffle method and masks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
Index: tests/lib/typed_data/float32x4_test.dart
diff --git a/tests/lib/typed_data/float32x4_test.dart b/tests/lib/typed_data/float32x4_test.dart
index cc244556c02cf1fd70b5fe9e0ecc1084151f1372..6a316af38bf2ebad7f8932ec5429cd43e65100b5 100644
--- a/tests/lib/typed_data/float32x4_test.dart
+++ b/tests/lib/typed_data/float32x4_test.dart
@@ -130,42 +130,42 @@ testClamp() {
testShuffle() {
var m = new Float32x4(1.0, 2.0, 3.0, 4.0);
- var xxxx = m.xxxx;
+ var xxxx = m.shuffle(Float32x4.xxxx);
Expect.equals(1.0, xxxx.x);
Expect.equals(1.0, xxxx.y);
Expect.equals(1.0, xxxx.z);
Expect.equals(1.0, xxxx.w);
- var yyyy = m.yyyy;
+ var yyyy = m.shuffle(Float32x4.yyyy);
Expect.equals(2.0, yyyy.x);
Expect.equals(2.0, yyyy.y);
Expect.equals(2.0, yyyy.z);
Expect.equals(2.0, yyyy.w);
- var zzzz = m.zzzz;
+ var zzzz = m.shuffle(Float32x4.zzzz);
Expect.equals(3.0, zzzz.x);
Expect.equals(3.0, zzzz.y);
Expect.equals(3.0, zzzz.z);
Expect.equals(3.0, zzzz.w);
- var wwww = m.wwww;
+ var wwww = m.shuffle(Float32x4.wwww);
Expect.equals(4.0, wwww.x);
Expect.equals(4.0, wwww.y);
Expect.equals(4.0, wwww.z);
Expect.equals(4.0, wwww.w);
- var wzyx = m.wzyx;
+ var wzyx = m.shuffle(Float32x4.wzyx);
Expect.equals(4.0, wzyx.x);
Expect.equals(3.0, wzyx.y);
Expect.equals(2.0, wzyx.z);
Expect.equals(1.0, wzyx.w);
- var wwzz = m.wwzz;
+ var wwzz = m.shuffle(Float32x4.wwzz);
Expect.equals(4.0, wwzz.x);
Expect.equals(4.0, wwzz.y);
Expect.equals(3.0, wwzz.z);
Expect.equals(3.0, wwzz.w);
- var xxyy = m.xxyy;
+ var xxyy = m.shuffle(Float32x4.xxyy);
Expect.equals(1.0, xxyy.x);
Expect.equals(1.0, xxyy.y);
Expect.equals(2.0, xxyy.z);
Expect.equals(2.0, xxyy.w);
- var yyww = m.yyww;
+ var yyww = m.shuffle(Float32x4.yyww);
Expect.equals(2.0, yyww.x);
Expect.equals(2.0, yyww.y);
Expect.equals(4.0, yyww.z);

Powered by Google App Engine
This is Rietveld 408576698