rsx_diff__diff_template.snap 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ---
  2. source: packages/rsx/tests/rsx_diff.rs
  3. expression: created_template
  4. ---
  5. Template {
  6. name: "testing",
  7. roots: [
  8. Element {
  9. tag: "svg",
  10. namespace: Some(
  11. "svg",
  12. ),
  13. attrs: [
  14. Dynamic {
  15. id: 0,
  16. },
  17. Static {
  18. name: "height",
  19. value: "100px",
  20. namespace: Some(
  21. "style",
  22. ),
  23. },
  24. Dynamic {
  25. id: 1,
  26. },
  27. Static {
  28. name: "height2",
  29. value: "100px",
  30. namespace: None,
  31. },
  32. ],
  33. children: [
  34. Element {
  35. tag: "p",
  36. namespace: None,
  37. attrs: [],
  38. children: [
  39. Text {
  40. text: "hello world",
  41. },
  42. ],
  43. },
  44. Dynamic {
  45. id: 0,
  46. },
  47. Dynamic {
  48. id: 1,
  49. },
  50. Dynamic {
  51. id: 2,
  52. },
  53. Dynamic {
  54. id: 3,
  55. },
  56. ],
  57. },
  58. ],
  59. node_paths: [
  60. [
  61. 0,
  62. 1,
  63. ],
  64. [
  65. 0,
  66. 2,
  67. ],
  68. [
  69. 0,
  70. 3,
  71. ],
  72. [
  73. 0,
  74. 4,
  75. ],
  76. ],
  77. attr_paths: [
  78. [
  79. 0,
  80. ],
  81. [
  82. 0,
  83. ],
  84. ],
  85. }