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 ;
5 IN: google.charts.tests
7 ! The order of the constructors below is important, because we
8 ! are testing side-effects. If you remove the clone word from
9 ! chart>url implementation, the second object in each test
10 ! will incorrectly result in the same URL as the first one
11 ! (although the order of parameters in the URL may vary).
12 ! The order of tests is important for the same reason.
15 "" <formula> t >>data-scale
17 [ chart>url present length ] bi@ >
22 { 0 0 } <line> f >>width f >>height
23 [ chart>url present length ] bi@ >
27 { 0 0 } <line> COLOR: red >>background
29 [ chart>url present length ] bi@ >
33 { 0 0 } <line> COLOR: red >>foreground
35 [ chart>url present length ] bi@ >
39 { 0 0 } <line> { 0 0 } >>margin
41 [ chart>url present length ] bi@ >
45 { 0 0 } <line> 5 >>bar-width
47 [ chart>url present length ] bi@ >