ウェブサイトに画像があります。Jasmine フレームワークの Java スクリプトを使用して、その画像の Max_width の CSS 値を取得する必要があります。
案内してもらえますか。
コードは次のとおりです。
it("Should return Max-width value: '"+width+"'",function(){
var width, item;
item = OpenSpace.getElementById("OpenLayers.Layer.Vector_49_svgRoot");
width = item.max_width;
expect(result).toBe(width);
alert(width);
ありがとうラヴィ