From cffec1335559c4d9829317bcbe22ae8ddcbaea03 Mon Sep 17 00:00:00 2001 From: tk0miya Date: Fri, 26 Sep 2014 00:36:38 +0900 Subject: [PATCH] Add testcases for numfig --- tests/roots/test-tocdepth/bar.rst | 11 ++ tests/roots/test-tocdepth/baz.rst | 3 + tests/roots/test-tocdepth/foo.rst | 15 ++ tests/roots/test-tocdepth/index.rst | 8 + tests/roots/test-tocdepth/rimg.png | Bin 0 -> 218 bytes tests/test_build_html.py | 220 ++++++++++++++++++++++++++++ 6 files changed, 257 insertions(+) create mode 100644 tests/roots/test-tocdepth/rimg.png diff --git a/tests/roots/test-tocdepth/bar.rst b/tests/roots/test-tocdepth/bar.rst index d70dec90d..96c692c56 100644 --- a/tests/roots/test-tocdepth/bar.rst +++ b/tests/roots/test-tocdepth/bar.rst @@ -11,10 +11,18 @@ Bar A should be 2.1 +.. figure:: rimg.png + + should be Fig.2.1 + .. toctree:: baz +.. figure:: rimg.png + + should be Fig.2.3 + Bar B ===== @@ -25,3 +33,6 @@ Bar B1 should be 2.2.1 +.. figure:: rimg.png + + should be Fig.2.4 diff --git a/tests/roots/test-tocdepth/baz.rst b/tests/roots/test-tocdepth/baz.rst index b07fa0507..a1cb05127 100644 --- a/tests/roots/test-tocdepth/baz.rst +++ b/tests/roots/test-tocdepth/baz.rst @@ -3,3 +3,6 @@ Baz A should be 2.1.1 +.. figure:: rimg.png + + should be Fig.2.2 diff --git a/tests/roots/test-tocdepth/foo.rst b/tests/roots/test-tocdepth/foo.rst index 61fd539ff..7fad902d7 100644 --- a/tests/roots/test-tocdepth/foo.rst +++ b/tests/roots/test-tocdepth/foo.rst @@ -4,11 +4,23 @@ Foo should be 1 +.. figure:: rimg.png + + should be Fig.1.1 + Foo A ===== should be 1.1 +.. figure:: rimg.png + + should be Fig.1.2 + +.. figure:: rimg.png + + should be Fig.1.3 + Foo A1 ------ @@ -24,3 +36,6 @@ Foo B1 should be 1.2.1 +.. figure:: rimg.png + + should be Fig.1.4 diff --git a/tests/roots/test-tocdepth/index.rst b/tests/roots/test-tocdepth/index.rst index 0b651d483..ee32ef4c4 100644 --- a/tests/roots/test-tocdepth/index.rst +++ b/tests/roots/test-tocdepth/index.rst @@ -6,3 +6,11 @@ test-tocdepth foo bar + +.. figure:: rimg.png + + should be Fig.1 + +.. figure:: rimg.png + + should be Fig.2 diff --git a/tests/roots/test-tocdepth/rimg.png b/tests/roots/test-tocdepth/rimg.png new file mode 100644 index 0000000000000000000000000000000000000000..1081dc1439fb984dfa7ef627afe3c7dc476fdbce GIT binary patch literal 218 zcmeAS@N?(olHy`uVBq!ia0vp^j6iI|!3HFkf4uMuBv2gW?!>U}oXkrghqJ&VvY3H^ zTNs2H8D`Cq01C2~c>21s-(chw7$R|bZ|_0D0|q>YSbqDzW^|HYIk%*-&O)*