quickdraw/compilation_equivalence_cases/comma_separated_token_attributes.rb

Lines

0%

0 of 20 covered

Branches

—

0 of 0 covered

Methods

0%

0 of 3 covered

Not run
3-1014-1822-28
Never called
1# frozen_string_literal: true
2
30module EquivalenceCases
40 module CommaSeparatedTokenAttributes
50 class Static < Phlex::HTML
60 def view_template
70 img(srcset: ["a.jpg 1x", "b.jpg 2x"], src: "a.jpg")
80 link(rel: "preload", as: "image", imagesrcset: ["a.jpg 1x", "b.jpg 2x"])
90 link(rel: "stylesheet", media: ["screen", "print"])
100 input(type: "file", accept: ["image/png", "image/jpeg"])
11 end
12 end
13
140 class Dynamic < Phlex::HTML
150 def view_template
160 srcs = ["a.jpg 1x", "b.jpg 2x"]
170 img(srcset: srcs, src: "a.jpg")
180 input(type: "file", accept: srcs)
19 end
20 end
21
220 class DynamicTags < Phlex::HTML
230 def view_template
240 div do
250 tag(:img, srcset: ["a.jpg 1x", ["b,c.jpg 2x"]])
260 tag(:link, rel: "preload", as: "image", imagesrcset: ["a.jpg 1x", "b.jpg 2x"])
270 tag(:link, media: ["screen", "print"], sizes: ["16x16", "32x32"])
280 tag(:input, type: "file", accept: ["image/png", "image/jpeg"])
29 end
30 end
31 end
32 end
33end