diff of 8ac6f2e23c379a7713d23ea506a6afa9330ea258
8ac6f2e23c379a7713d23ea506a6afa9330ea258
diff --git a/test/newui-tests.lisp b/test/newui-tests.lisp
index c00b73d..8d769f8 100644
--- a/test/newui-tests.lisp
+++ b/test/newui-tests.lisp
@@ -33,7 +33,7 @@
"
<BODY>
-<H1 ID=\"lol\" CLASS=\"header\">
+<H1 CLASS=\"header\" ID=\"lol\">
HEADER
</H1>
@@ -49,14 +49,14 @@
(c :h1 (:id "lol" :class "header") "HEADER")
(with-state ((example-variable "Example content")) (:root-id "testitila")
(c :article (:id "lol2") example-variable))))
- "
+"
<BODY>
-<H1 ID=\"lol\" CLASS=\"header\">
+<H1 CLASS=\"header\" ID=\"lol\">
HEADER
</H1>
-<ARTICLE ID=\"idtestitila\" ID=\"lol2\">
+<ARTICLE ID=\"idtestitila\">
Example content
</ARTICLE>
@@ -65,9 +65,10 @@
;; basic with-state renders too
(is (string= (render (with-state ((example-variable "Example content")) (:root-id "testitila")
+ ;; this :article IS the root element so the second id is eaten I guessy
(c :article (:id "lol2") example-variable)))
- "
-<ARTICLE ID=\"idtestitila\" ID=\"lol2\">
+"
+<ARTICLE ID=\"idtestitila\">
Example content
</ARTICLE>
"))
@@ -79,7 +80,7 @@
;; :link is rendered as <link .../> instead of <link> ... </link>
- (is (string= "<LINK HREF=\"/resources/murja.css\" REL=\"stylesheet\" TYPE=\"text/css\" />"
+ (is (string= "<LINK TYPE=\"text/css\" REL=\"stylesheet\" HREF=\"/resources/murja.css\" />"
(render (c :link (:href "/resources/murja.css" :rel "stylesheet" :type "text/css") "random child that shouldn't be")))))
@@ -87,5 +88,5 @@
-;; (fiveam:explain!
-;; (fiveam:run 'html-generator-tests))
+ ;; (fiveam:explain!
+ ;; (fiveam:run 'html-generator-tests))