rsx_diff__create_template.snap 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ---
  2. source: packages/rsx/tests/rsx_diff.rs
  3. expression: 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. ],
  48. },
  49. ],
  50. node_paths: [
  51. [
  52. 0,
  53. 1,
  54. ],
  55. ],
  56. attr_paths: [
  57. [
  58. 0,
  59. ],
  60. [
  61. 0,
  62. ],
  63. ],
  64. }