ダイアリーからのインポート完了
とっても簡単だった。
完全移行完了。
CoffeeScript
プロパティとメソッドの頭の@はstaticって感じなのね。
class MyClass
@classProp: "aaaaa"
instanceProp: "bbbbb"
constructor: (prop) ->
@instanceProp = prop
@classMethod: () ->
@classProp = "ddddd"
console.log @classProp
"return"
instanceMethod: () ->
console.log @instanceProp
"return"
mc = new MyClass "ccccc"
mc.instanceMethod()
MyClass.classMethod()
■js-test-driver と Jasmine で Ajax test
js-test-driverはあまり関係ないかもしれないけど、後で書く
JavaScriptまわりあれこれ
順番適当メモ
Blue Ridge
Rails Plugin. Rhino, Screw.Unit, Smoke, env.js をテスト環境を構築
Jasmine-Sinon
Sinon.JS
Test-Driven JavaScript Development の著者 Christian Johansen
テスト用にモック、スタブを扱うためのフレームワーク
Mocha
node 製 Test Framework
should が使われていて、should は assert の拡張
テスト結果が見やすくてかっこいい
Env.js
Pavlov
Pavlov extends JavaScript testing framework QUnit with a rich,
higher-level, Behavioral API with the following:
memo
最近調べた事などをアウトプット
- JavaScript最適化
- pjax
- Webページ最適化
- pagespeed web 版から
ココをメインブログにする
なんだかんだで、数年blogを書いてなかったので、
近々コチラで何か書きたい