sprite-selector-item.test.jsx.snap 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`SpriteSelectorItemComponent matches snapshot when given a number and details to show 1`] = `
  3. <div
  4. className="react-contextmenu-wrapper ponies undefined"
  5. onClick={[Function]}
  6. onContextMenu={[Function]}
  7. onMouseDown={[Function]}
  8. onMouseEnter={undefined}
  9. onMouseLeave={undefined}
  10. onMouseOut={[Function]}
  11. onMouseUp={[Function]}
  12. onTouchEnd={[Function]}
  13. onTouchStart={[Function]}
  14. >
  15. <div
  16. className={undefined}
  17. >
  18. 5
  19. </div>
  20. <div
  21. className={undefined}
  22. >
  23. <div
  24. className={undefined}
  25. >
  26. <img
  27. className={undefined}
  28. draggable={false}
  29. src="https://scratch.mit.edu/foo/bar/pony"
  30. />
  31. </div>
  32. </div>
  33. <div
  34. className={undefined}
  35. >
  36. <div
  37. className={undefined}
  38. >
  39. Pony sprite
  40. </div>
  41. <div
  42. className={undefined}
  43. >
  44. 480 x 360
  45. </div>
  46. </div>
  47. <div
  48. aria-label="Delete"
  49. className=""
  50. onClick={[Function]}
  51. role="button"
  52. tabIndex={0}
  53. >
  54. <div
  55. className={undefined}
  56. >
  57. <img
  58. className={undefined}
  59. src="test-file-stub"
  60. />
  61. </div>
  62. </div>
  63. <nav
  64. className="react-contextmenu"
  65. onContextMenu={[Function]}
  66. onMouseLeave={[Function]}
  67. role="menu"
  68. style={
  69. Object {
  70. "opacity": 0,
  71. "pointerEvents": "none",
  72. "position": "fixed",
  73. }
  74. }
  75. tabIndex="-1"
  76. >
  77. <div
  78. aria-disabled="false"
  79. aria-orientation={null}
  80. className="react-contextmenu-item"
  81. onClick={[Function]}
  82. onMouseLeave={[Function]}
  83. onMouseMove={[Function]}
  84. onTouchEnd={[Function]}
  85. role="menuitem"
  86. tabIndex="-1"
  87. >
  88. <span>
  89. delete
  90. </span>
  91. </div>
  92. </nav>
  93. </div>
  94. `;
  95. exports[`SpriteSelectorItemComponent matches snapshot when selected 1`] = `
  96. <div
  97. className="react-contextmenu-wrapper ponies undefined"
  98. onClick={[Function]}
  99. onContextMenu={[Function]}
  100. onMouseDown={[Function]}
  101. onMouseEnter={undefined}
  102. onMouseLeave={undefined}
  103. onMouseOut={[Function]}
  104. onMouseUp={[Function]}
  105. onTouchEnd={[Function]}
  106. onTouchStart={[Function]}
  107. >
  108. <div
  109. className={undefined}
  110. >
  111. <div
  112. className={undefined}
  113. >
  114. <img
  115. className={undefined}
  116. draggable={false}
  117. src="https://scratch.mit.edu/foo/bar/pony"
  118. />
  119. </div>
  120. </div>
  121. <div
  122. className={undefined}
  123. >
  124. <div
  125. className={undefined}
  126. >
  127. Pony sprite
  128. </div>
  129. </div>
  130. <div
  131. aria-label="Delete"
  132. className=""
  133. onClick={[Function]}
  134. role="button"
  135. tabIndex={0}
  136. >
  137. <div
  138. className={undefined}
  139. >
  140. <img
  141. className={undefined}
  142. src="test-file-stub"
  143. />
  144. </div>
  145. </div>
  146. <nav
  147. className="react-contextmenu"
  148. onContextMenu={[Function]}
  149. onMouseLeave={[Function]}
  150. role="menu"
  151. style={
  152. Object {
  153. "opacity": 0,
  154. "pointerEvents": "none",
  155. "position": "fixed",
  156. }
  157. }
  158. tabIndex="-1"
  159. >
  160. <div
  161. aria-disabled="false"
  162. aria-orientation={null}
  163. className="react-contextmenu-item"
  164. onClick={[Function]}
  165. onMouseLeave={[Function]}
  166. onMouseMove={[Function]}
  167. onTouchEnd={[Function]}
  168. role="menuitem"
  169. tabIndex="-1"
  170. >
  171. <span>
  172. delete
  173. </span>
  174. </div>
  175. </nav>
  176. </div>
  177. `;