From ddec25863a65283c043539a82c956f701ebf9df9 Mon Sep 17 00:00:00 2001 From: Alan Gutierrez Date: Mon, 24 Jun 2013 23:29:52 -0400 Subject: [PATCH] Test `null` to remove an attribute. Closes #115. --- t/directives/attribute.t.js | 4 ++-- t/directives/fixtures/attribute-regenerate.xml | 2 +- t/directives/fixtures/attribute.stencil | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t/directives/attribute.t.js b/t/directives/attribute.t.js index 88ac2e6..95b0404 100755 --- a/t/directives/attribute.t.js +++ b/t/directives/attribute.t.js @@ -5,7 +5,7 @@ require('./proof')(2, function (step, context, fixture, ok, compare) { step(function () { - context.generate('fixtures/attribute.stencil', { src: "world.png", alt: "Hello, World!" }, step()); + context.generate('fixtures/attribute.stencil', { target: null, src: "world.png", alt: "Hello, World!" }, step()); fixture('fixtures/attribute-generate.xml', step()); fixture('fixtures/attribute-regenerate.xml', step()); @@ -14,7 +14,7 @@ require('./proof')(2, function (step, context, fixture, ok, compare) { step(function () { ok(compare(actual.document, generate), 'generate'); - context.regenerate(actual, { src: "nurse.png", alt: "Hello, Nurse!" }, step()); + context.regenerate(actual, { target: "_self", src: "nurse.png", alt: "Hello, Nurse!" }, step()); }, function (actual) { diff --git a/t/directives/fixtures/attribute-regenerate.xml b/t/directives/fixtures/attribute-regenerate.xml index 47bc20e..465e029 100644 --- a/t/directives/fixtures/attribute-regenerate.xml +++ b/t/directives/fixtures/attribute-regenerate.xml @@ -1,5 +1,5 @@ -Hello, Nurse! +Hello, Nurse! diff --git a/t/directives/fixtures/attribute.stencil b/t/directives/fixtures/attribute.stencil index c287f50..da6ddee 100644 --- a/t/directives/fixtures/attribute.stencil +++ b/t/directives/fixtures/attribute.stencil @@ -1,5 +1,5 @@ - +