rsx_diff__diff_template-2.snap 1.6 KB

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