From a979a36a92345c329353e03ee6247f2f1ffa1ab0 Mon Sep 17 00:00:00 2001 From: Dan Holmsand Date: Wed, 19 Aug 2015 10:14:02 +0200 Subject: [PATCH] Drop test for key warning React will sometimes warn, even if we don't. Also, small fix for async demo. --- demo/reagentdemo/news/async.cljs | 2 +- test/reagenttest/testreagent.cljs | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/demo/reagentdemo/news/async.cljs b/demo/reagentdemo/news/async.cljs index 5421ec1..68aa4eb 100644 --- a/demo/reagentdemo/news/async.cljs +++ b/demo/reagentdemo/news/async.cljs @@ -61,7 +61,7 @@ "number of color divs " @ncolors [:input {:type "range" :min 0 :max 500 :value @ncolors - :on-change #(reset! ncolors (-> % .-target .-value))}]]) + :on-change #(reset! ncolors (-> % .-target .-value int))}]]) (defn color-plate [color] [:div.color-plate diff --git a/test/reagenttest/testreagent.cljs b/test/reagenttest/testreagent.cljs index 84d1a43..2bf78a4 100644 --- a/test/reagenttest/testreagent.cljs +++ b/test/reagenttest/testreagent.cljs @@ -516,12 +516,3 @@ (rstr [:div.foo [:p.bar.foo [:b.foobar "xy"]]]))) (is (= (rstr [:div>p.bar.foo>a.foobar {:href "href"} "xy"]) (rstr [:div [:p.bar.foo [:a.foobar {:href "href"} "xy"]]])))) - - -(deftest test-key-warning - ;; Just make sure that seq without key dont print unnecessary - ;; debug messages - (r/render-to-static-markup [:div (for [x (range 5)] - [:p x])]) - (r/render-to-string [:div (for [x (range 5)] - [:p x])]))