| Index: pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
|
| diff --git a/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js b/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
|
| index 7a5352c7712bd83d6f3f3c47ff394c0df2c6a706..06ae44191fdae6d51449a4dceff3801f0024f7f3 100644
|
| --- a/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
|
| +++ b/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
|
| @@ -46,7 +46,7 @@ define(['dart_sdk'], function(dart_sdk) {
|
| return sunflower.querySelector("#notes");
|
| },
|
| get PHI() {
|
| - return (dart.notNull(math.sqrt(5)) + 1) / 2;
|
| + return (math.sqrt(5) + 1) / 2;
|
| },
|
| get seeds() {
|
| return 0;
|
| @@ -63,9 +63,9 @@ define(['dart_sdk'], function(dart_sdk) {
|
| sunflower.context.clearRect(0, 0, sunflower.MAX_D, sunflower.MAX_D);
|
| for (let i = 0; i < dart.notNull(sunflower.seeds); i++) {
|
| let theta = i * painter.TAU / dart.notNull(sunflower.PHI);
|
| - let r = dart.notNull(math.sqrt(i)) * sunflower.SCALE_FACTOR;
|
| - let x = sunflower.centerX + r * dart.notNull(math.cos(theta));
|
| - let y = sunflower.centerY - r * dart.notNull(math.sin(theta));
|
| + let r = math.sqrt(i) * sunflower.SCALE_FACTOR;
|
| + let x = sunflower.centerX + r * math.cos(theta);
|
| + let y = sunflower.centerY - r * math.sin(theta);
|
| new sunflower.SunflowerSeed.new(x, y, sunflower.SEED_RADIUS).draw(sunflower.context);
|
| }
|
| sunflower.notes[dartx.text] = dart.str`${sunflower.seeds} seeds`;
|
|
|