1 ! Copyright (C) 2016 Alexander Ilin.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors colors.constants google.charts
4 google.charts.private kernel math present sequences tools.test ;
6 ! The order of the constructors below is important, because we
7 ! are testing side-effects. If you remove the clone word from
8 ! chart>url implementation, the second object in each test
9 ! will incorrectly result in the same URL as the first one
10 ! (although the order of parameters in the URL may vary).
11 ! The order of tests is important for the same reason.
14 "" <formula> t >>data-scale
16 [ chart>url present length ] bi@ >
21 { 0 0 } <line> f >>width f >>height
22 [ chart>url present length ] bi@ >
26 { 0 0 } <line> COLOR: red >>background
28 [ chart>url present length ] bi@ >
32 { 0 0 } <line> COLOR: red >>foreground
34 [ chart>url present length ] bi@ >
38 { 0 0 } <line> { 0 0 } >>margin
40 [ chart>url present length ] bi@ >
44 { 0 0 } <line> 5 >>bar-width
46 [ chart>url present length ] bi@ >