Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54812 - trunk/tools/quickbook/test
From: daniel_james_at_[hidden]
Date: 2009-07-08 17:40:14


Author: danieljames
Date: 2009-07-08 17:40:14 EDT (Wed, 08 Jul 2009)
New Revision: 54812
URL: http://svn.boost.org/trac/boost/changeset/54812

Log:
Add a couple of tests for quickbook 1.4 behaviour to try to preserve it.
Added:
   trunk/tools/quickbook/test/templates_1_4.gold (contents, props changed)
   trunk/tools/quickbook/test/templates_1_4.quickbook (contents, props changed)
Text files modified:
   trunk/tools/quickbook/test/Jamfile.v2 | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/tools/quickbook/test/Jamfile.v2
==============================================================================
--- trunk/tools/quickbook/test/Jamfile.v2 (original)
+++ trunk/tools/quickbook/test/Jamfile.v2 2009-07-08 17:40:14 EDT (Wed, 08 Jul 2009)
@@ -20,6 +20,7 @@
     [ quickbook-test link-side-by-side ]
     [ quickbook-test escape ]
     [ quickbook-test templates ]
+ [ quickbook-test templates_1_4 ]
     [ quickbook-test xinclude ]
     [ quickbook-test import ]
     [ quickbook-fail-test fail-include ]

Added: trunk/tools/quickbook/test/templates_1_4.gold
==============================================================================
--- (empty file)
+++ trunk/tools/quickbook/test/templates_1_4.gold 2009-07-08 17:40:14 EDT (Wed, 08 Jul 2009)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<article id="template_1_4" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <title>Template 1.4</title>
+ <articleinfo>
+ </articleinfo>
+ <para>
+ dynamic scoping
+ </para>
+ <para>
+ old
+ </para>
+</article>

Added: trunk/tools/quickbook/test/templates_1_4.quickbook
==============================================================================
--- (empty file)
+++ trunk/tools/quickbook/test/templates_1_4.quickbook 2009-07-08 17:40:14 EDT (Wed, 08 Jul 2009)
@@ -0,0 +1,16 @@
+[article Template 1.4
+ [quickbook 1.4]
+]
+
+[/ 1.4 uses dynamic scoping ]
+
+[template x static scoping]
+[template foo1[] [x]]
+[template foo2[x] [foo1]]
+[foo2 dynamic scoping]
+
+[/ In 1.4 template arguments are scoped at the point they are used]
+
+[template y new]
+[template foo3[a y] [a]]
+[foo3 [y] old]
\ No newline at end of file


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk